pysamstats
pysamstats copied to clipboard
Carriage return appended to lines
Hi- It appears that a carriage return character is appended to each line in the output of --type variation (I don't know about other options):
pysamstats --type variation --fasta GRCh38.fa aln.bam | cat -vet | head
chrom^Ipos^Iref^Ireads_all^Ireads_pp^Imatches^Imatches_pp^Imismatches^Imismatches_pp^Ideletions^Ideletions_pp^Iinsertions^Iinsertions_pp^IA^IA_pp^IC^IC_pp^IT^IT_pp^IG^IG_pp^IN^IN_pp^M$
chr1^I10000^IN^I1^I0^I0^I0^I1^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^M$
chr1^I10001^IT^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^M$
chr1^I10002^IA^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^M$
chr1^I10003^IA^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^M$
chr1^I10004^IC^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^M$
chr1^I10005^IC^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^M$
chr1^I10006^IC^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^M$
chr1^I10007^IT^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^M$
chr1^I10008^IA^I1^I0^I1^I0^I0^I0^I0^I0^I0^I0^I1^I0^I0^I0^I0^I0^I0^I0^I0^I0^M$
I don't know if this is intentional but I personally I would prefer to have the carriage return removed.
This is with pysamstats version: 1.1.0.dev0 (pysam 0.14.1)
Thank you! Dario
Thanks Dario, I'm sure we can do something about this.