NicolaDM / phastSim

fast sequence evolution simulation for SARS-CoV-2 and similar
GNU General Public License v3.0
17 stars 5 forks source link

--rootGenomeLength doesn't work on phastSim 0.0.3 #15

Closed trongnhanuit closed 2 years ago

trongnhanuit commented 2 years ago

Dear authors, I've just found that the option "--rootGenomeLength" doesn't work on phastSim 0.0.3 while it still works well on version 0.0.2.

- Input files:

- Command:

phastSim --outpath . --seed 1 --treeFile tree.nwk --reference MN908947.3.fasta --outputFile output --rootGenomeLength 1000

- Error:

rootGenomeFrequencies = self.init_insertion_frequencies()
TypeError: init_insertion_frequencies() missing 1 required positional argument: 'ref'

Could you please help me to check it? Many thanks.

Cheers, Nhan

trongnhanuit commented 2 years ago

I can confirm that the option "--rootGenomeLength" works well on the new version of phastSim (0.0.4). I've just tested it.

Best regards, Nhan