thethoughtemporium / Whose-gene-is-it-anyway

771 stars 82 forks source link

Refactoring to allow batching of seeds #11

Closed elijahsgh closed 4 years ago

elijahsgh commented 4 years ago

A small tool was added to generate uniform seeds. Ex:

$ python3 batch_codon_shuffle.py generate-seeds 5
Generate seeds
#SEED:5050864317287712,1374150262226816,7235743876863178,9923018557484696,1896010111979516

This can be pre-pended to input files. Input files may have zero or more seeds.

Input example:

#SEED:5050864317287712,1374150262226816,7235743876863178,9923018557484696,1896010111979516
QQSSVA # some comment

Output example:

#SEED:5050864317287712
CAACAGTCATCTGTAGCA # some comment
#SEED:1374150262226816
CAACAATCTTCAGTTGCT # some comment
#SEED:7235743876863178
CAACAGTCATCCGTTGCT # some comment
#SEED:9923018557484696
CAACAGTCCTCTGTAGCC # some comment
#SEED:1896010111979516
CAGCAATCCTCCGTTGCC # some comment