Hello. I am trying to run PairTools on some mammalian HiC data. I have aligned the data with bwa and have the bam files ready. The first step (in which ${a} is the bwa alignment output bam file) finishes fine:
samtools view -h ${a} | pairtools parse -c ${Chromosomes} -o ${a}.pairfile
Then, I try the following step:
pairtools sort --nproc 8 -o ${a}.pairs.sorted ${a}.pairfile
Here, I receive an error that the program "cannot write compressed block". So, I added a flag to ensure the input is decompressed:
pairtools sort --cmd-in -o ${a}.pairs.sorted ${a}.pairfile
However, now the script no longer reads the ${a}.pairfile as input and reports that " Error: Got unexpected extra argument (Mutant-Merge.bam.pairfile)".
When I used the same script for the individual replicates before merging, everything worked fine. I merged them by simply concatenating the fastq files for the two replicates together, which I do not believe should affect this step, since the alignment ran fine.
Thank you for any feedback you may have.
Hello. I am trying to run PairTools on some mammalian HiC data. I have aligned the data with bwa and have the bam files ready. The first step (in which ${a} is the bwa alignment output bam file) finishes fine:
samtools view -h ${a} | pairtools parse -c ${Chromosomes} -o ${a}.pairfileThen, I try the following step:
pairtools sort --nproc 8 -o ${a}.pairs.sorted ${a}.pairfileHere, I receive an error that the program "cannot write compressed block". So, I added a flag to ensure the input is decompressed:
pairtools sort --cmd-in -o ${a}.pairs.sorted ${a}.pairfileHowever, now the script no longer reads the ${a}.pairfile as input and reports that " Error: Got unexpected extra argument (Mutant-Merge.bam.pairfile)".
When I used the same script for the individual replicates before merging, everything worked fine. I merged them by simply concatenating the fastq files for the two replicates together, which I do not believe should affect this step, since the alignment ran fine.
Thank you for any feedback you may have.