From 7085409701f5ce813d04c21a51db136f92fe02b7 Mon Sep 17 00:00:00 2001 From: malonge Date: Tue, 2 Feb 2021 18:51:51 -0500 Subject: [PATCH] changed spacing for restriction enzyme message --- ragtag_utilities/RestrictionFragmentMap.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/ragtag_utilities/RestrictionFragmentMap.py b/ragtag_utilities/RestrictionFragmentMap.py index 0909424..4d98ed2 100644 --- a/ragtag_utilities/RestrictionFragmentMap.py +++ b/ragtag_utilities/RestrictionFragmentMap.py @@ -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):