Closed petitmingchang closed 1 year ago
Hello, In your "Input.sorted.bam" file, did you map reads to the composite reference genome (for example, human + fly) ? When you make this composite ref genome, did you add a prefix to the fly's chromosome IDs (for example, change fly's chr2L to "dm6_chr2L)? If you did not do this, it is impossible to split the BAM file as we cannot distinguish human and fly's chromosome (for example, chrX, chrY, and chr4 exist in both human and fly's genome files).
please follow this tutorial: https://spiker.readthedocs.io/en/latest/walkthrough.html#map-reads-to-the-composite-reference-genome
@liguowang
Thank you for your prompt reply! I followed the protocol described in the paper published in STAR PROTOCOLS, https://star-protocols.cell.com/protocols/829. I used a composite ref genome (mouse + yeast). Besides, I did add a prefix to the yeast chromosome IDs (sacCer3_) in the composite genome sequence file. Did I miss any step to run the process?
Yao-Ming
Then you need to specify "-p sacCer3_" to "split_bam.py".
-p CHR_PREFIX, --exo-prefix=CHR_PREFIX Prefix added to the exogenous chromosome IDs. For example. ‘chr2L’ -> ‘dm6chr2L’. default=dm6
@liguowang
Thank you for your help. It works fine now!
Hi, I ran the command shown on the website:
Then got a error message as follows:
My python version is Python 3.6.15. Is is possible to fix the issue? Thank you so much!