I've been using your CrossMap for a while to convert the gene coordinates of chimpanzee and orangutan to human's one, thanks to you! It's been working so far very great, but I have encountered an issue titled in this issue.
Crossmap.py version: 0.6.5
My input: chimpanzee and orangutan bam files generated from ChIP-seq
My commend line: CrossMap.py bam -a panTro6ToHg38.over.chain.gz Chimp.bam HumanizedChimp
Log:
True
Insert size = 200.000000
Insert size stdev = 30.000000
Number of stdev from the mean = 3.000000
Add tags to each alignment = True
2023-03-25 11:05:59 [INFO] Read the chain file "panTro6ToHg38.over.chain.gz"
2023-03-25 11:06:26 [INFO] Liftover BAM file "Chimp.bam" to "HumanizedChimp.bam"
Traceback (most recent call last):
File "/Users/je.lee/opt/anaconda3/envs/CrossMap/bin/CrossMap.py", line 281, in <module>
crossmap_bam_file(mapping = mapTree, chainfile = chain_file, infile = in_file, outfile_prefix = out_file, chrom_size = targetChromSizes, IS_size = args.insert_size, IS_std = args.insert_size_stdev, fold = args.insert_size_fold, addtag = args.add_tags, cstyle = args.cstyle)
File "/Users/je.lee/opt/anaconda3/envs/CrossMap/lib/python3.7/site-packages/cmmodule/mapbam.py", line 546, in crossmap_bam_file
new_alignment.query_sequence = revcomp_DNA(old_alignment.query_sequence) #reverse complement read sequence
File "/Users/je.lee/opt/anaconda3/envs/CrossMap/lib/python3.7/site-packages/cmmodule/utils.py", line 92, in revcomp_DNA
seq = dna.replace(' ','').upper()
AttributeError: 'NoneType' object has no attribute 'replace'
When the sequence is represented as "*", pysam AlignedSegment.query_sequence will return None (link). Could you please remove those alignments records and try again? if this is indeed the case, I can quickly fix this issue.
Hi,
I've been using your CrossMap for a while to convert the gene coordinates of chimpanzee and orangutan to human's one, thanks to you! It's been working so far very great, but I have encountered an issue titled in this issue.
Crossmap.py version: 0.6.5 My input: chimpanzee and orangutan bam files generated from ChIP-seq My commend line:
CrossMap.py bam -a panTro6ToHg38.over.chain.gz Chimp.bam HumanizedChimp
Log:This is the head of my input bam file:
After executing the CrossMap commend line, I indeed get a "croassmapped" bam file but it's done only partly, e.g. the output file contains only chr1.
Could you please help me out? In case you need more information, I can provide the input/output files.
Thank you in advance!