Skip to content

Commit

Permalink
changed spacing for restriction enzyme message
Browse files Browse the repository at this point in the history
  • Loading branch information
malonge committed Feb 2, 2021
1 parent 3101169 commit 7085409
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ragtag_utilities/RestrictionFragmentMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,33 +87,30 @@ def get_info():
"""
msg = """
Below is a list of all accepted restriction enzymes and
their restriction sites:
"""
print(msg + "\n")
their restriction sites:\n"""

print(msg)
pairs = []
for i, j in zip(RestrictionEnzymes.enzymes_raw, RestrictionEnzymes.sites):
pairs.append(" {}: {}".format(i, j))

print("\n".join(pairs) + "\n")
print("\n".join(pairs))

msg = """
For RagTag, use a comma separated list of enzymes or
sites (or a mix). For example, for Arima Hi-C, use
'Sau3AI,HinfI' or 'GATC,GA[ATCG]TC'.
"""
'Sau3AI,HinfI' or 'GATC,GA[ATCG]TC'."""
print(msg)

msg = """
Note that for restriction sites, wildcards are
represented with python regex syntax, not IUPAC
ambiguity codes. e.g. '[ATCG]' instead of 'N'.
"""
ambiguity codes. e.g. '[ATCG]' instead of 'N'."""
print(msg)

msg = """
Please contact the developers if you would like to add
more enzymes/sites.
"""
more enzymes/sites."""
print(msg)

def add(self, r):
Expand Down

0 comments on commit 7085409

Please sign in to comment.