When abismal maps reads to a FASTA file with chromosome names containing spaces, it keeps only the first word in the chromosome name as its RNAME field. If passed onto methpipe programs (e.g. methcounts or bsrate) and the same reference is used, the chromosome names in the SAM file, which contain only the first word, are not found in the reference.
Suggested fix: Change read_fasta_file in smithlab_cpp such that only the first word is used internally. Since both bsrate and methcounts use this function to read directories or files, it should cause consistent behavior.
When abismal maps reads to a FASTA file with chromosome names containing spaces, it keeps only the first word in the chromosome name as its RNAME field. If passed onto methpipe programs (e.g.
methcounts
orbsrate
) and the same reference is used, the chromosome names in the SAM file, which contain only the first word, are not found in the reference.Suggested fix: Change
read_fasta_file
insmithlab_cpp
such that only the first word is used internally. Since bothbsrate
andmethcounts
use this function to read directories or files, it should cause consistent behavior.