You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: secapr/find_target_contigs.py
+20-5Lines changed: 20 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,12 @@ def add_arguments(parser):
60
60
default=False,
61
61
help="Use this flag in case you want to keep those contigs that span across multiple exons.",
62
62
)
63
+
parser.add_argument(
64
+
"--keep-paralogs",
65
+
action='store_true',
66
+
default=False,
67
+
help="Use this flag in case you want to keep loci with signs of paralogy (multiple contig matches). One randomely selected contig will be selected for these loci.",
print('Warning: Found %i paralogous loci. One randomely selected copy of the respective contigs for each paralogous locus will be kept, due to the use of the --keep_paralogs flag. It is not recommendable to use paralogous loci for phylogenetic inference!'%len(invalid_exons_temp))
139
154
else:
140
155
# remove all duplicates
141
156
invalid_exons_unique=list(set(duplicate_loci))
142
-
print(len(invalid_exons_unique), 'possibly paralogous exons detected - excluded from processing')
157
+
print(len(invalid_exons_unique), 'possibly paralogous exons detected - excluded from processing')
0 commit comments