Mercurial > repos > devteam > fasta_compute_length
comparison utils/fasta_to_len.py @ 5:7d37cfda8e00 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 06:46:51 -0500 |
parents | e12f68d2cc4e |
children |
comparison
equal
deleted
inserted
replaced
4:e12f68d2cc4e | 5:7d37cfda8e00 |
---|---|
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 = '' |