All_chroms = []
All_chroms.append('chrX')
All_chroms.append('chrY')
for i in range(22):
curr_chr = 'chr%i' % (i+1)
All_chroms.append(curr_chr)
If this method is not limited to human genome, the code should be fixed to make it work for general genomes. The authors should not assume how the chromosomes are named. For example, there is not always "chr" in chromosome names. The chromosome names should be obtained from the data provided. If it does not work for general genomes, it will definitely make users frustrated.
Does the method only apply to human data?
I tried it on mouse data. I constantly ran into errors. Finally I found the variable "All_chroms" was hard-coded to human genome.
lines 112-118 in DaPars2_Multi_Sample_Multi_Chr.py
If this method is not limited to human genome, the code should be fixed to make it work for general genomes. The authors should not assume how the chromosomes are named. For example, there is not always "chr" in chromosome names. The chromosome names should be obtained from the data provided. If it does not work for general genomes, it will definitely make users frustrated.