We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3fdaa commit b0b0c44Copy full SHA for b0b0c44
lib/BtIO.py
@@ -139,9 +139,15 @@ def parseCovFromHeader(fasta_type, header ):
139
return float(header.split("_")[-3])
140
elif fasta_type == 'velvet':
141
return float(header.split("_")[-1])
142
- elif fasta_type == 'abyss':
+ elif fasta_type == 'abyss' or fasta_type == 'soap':
143
temp = header.split(" ")
144
return float(temp[2]/(temp[1]+1-75))
145
+ elif fasta_type == 'platanus':
146
+ temp = header.rsplit("\n").split("_")
147
+ if len(temp) >= 3:
148
+ return float(temp[3].replace("cov", "")) # scaffold/scaffoldBubble/contig
149
+ else:
150
+ return float(temp[2].replace("cov", "")) # gapClosed
151
else:
152
pass
153
0 commit comments