Mercurial > repos > devteam > fasta_compute_length
comparison utils/fasta_to_len.py @ 5:a51da10f8caf draft
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/fasta_compute_length commit 34a6c9f94a5722bb7d2f887618aafa410a770e91"
| author | devteam |
|---|---|
| date | Mon, 02 Mar 2020 11:45:47 +0000 |
| parents | 79cd53e23207 |
| children |
comparison
equal
deleted
inserted
replaced
| 4:79cd53e23207 | 5:a51da10f8caf |
|---|---|
| 4 Output: tabular | 4 Output: tabular |
| 5 Return titles with lengths of corresponding seq | 5 Return titles with lengths of corresponding seq |
| 6 """ | 6 """ |
| 7 | 7 |
| 8 import sys | 8 import sys |
| 9 | |
| 10 assert sys.version_info[:2] >= (2, 4) | |
| 11 | 9 |
| 12 | 10 |
| 13 def compute_fasta_length(fasta_file, out_file, keep_first_char, keep_first_word=False): | 11 def compute_fasta_length(fasta_file, out_file, keep_first_char, keep_first_word=False): |
| 14 keep_first_char = int(keep_first_char) | 12 keep_first_char = int(keep_first_char) |
| 15 fasta_title = '' | 13 fasta_title = '' |
