Hii,
I am getting this error when creating histograms using cnvnator
Allocating memory ... Can't determine length for 'chr1'. No reference genome specified. Done. Calculating histograms with bin size of 100 for 'chr1' ...
This is the command I am using
Command option 1: cnvnator -genome /home/vchebii/cnv/sample.fa -root sample.root -chrom chr1 -his 100 -d /home/vchebii/cnv/ Command option2: cnvnator -root sample.root -his 100 -d /home/vchebii/cnv/
Individual chromosome fasta files and reference genome is in the director /cnv but I still get the error.
I generated the root file without any problem.
How has experienced this before and how do you solve it?
How are the chromosomes named in your bam file? Are those the same? Or do you have chr1 in bam and '1' without 'chr' as fasta?
Bam files are named like this @SQ SN:chr1 LN:157403528 @SQ SN:chr2 LN:136510947 @SQ SN:chr3 LN:120038259
Chrom fasta files are named like this chr1.fa, chr2.fa, chr3,fa e.t.c.
Chrom fasta headers and reference genome looks like this:
But
-genome /home/vchebii/cnv/sample.fa
is not pointing to your genome.fa ?The genome file ((sample.fa) is here /home/vchebii/cnv/sample.fa and the chrom files are here as well /home/vchebii/cnv/
Actually, I am running the cnvnator in the directory where all input files are.