Hello everybody
I am interested in determining sex from my nextseq runs. I read somewhere that a possibility is to calculate gene coverage for X and Y genes and then do sex determination
if cov(x)> cov(y) -> XX
if cov(x)~=cov(y) -> XY
to determine X coverage in Linux I am using samtools
samtools view <file.bam> RNAME 'chr[XY]'|wc -l
and the data I'm getting looks like
[email protected][refSamples] samtools view wtsorted.bam RNAME 'chrY'|wc -l [ 4:39]
[main_samview] region "RNAME" specifies an unknown reference name. Continue anyway.
93504
[email protected][refSamples] samtools view wtsorted.bam RNAME 'chrX'|wc -l [ 4:39]
[main_samview] region "RNAME" specifies an unknown reference name. Continue anyway.
1020263
The question is: Can I determinate sex only with this or i should do some kind of correction? it is normal to have more reads on chrx as long as it is bigger)
thanks
pau
I am interested in determining sex from my nextseq runs. I read somewhere that a possibility is to calculate gene coverage for X and Y genes and then do sex determination
if cov(x)> cov(y) -> XX
if cov(x)~=cov(y) -> XY
to determine X coverage in Linux I am using samtools
samtools view <file.bam> RNAME 'chr[XY]'|wc -l
and the data I'm getting looks like
[email protected][refSamples] samtools view wtsorted.bam RNAME 'chrY'|wc -l [ 4:39]
[main_samview] region "RNAME" specifies an unknown reference name. Continue anyway.
93504
[email protected][refSamples] samtools view wtsorted.bam RNAME 'chrX'|wc -l [ 4:39]
[main_samview] region "RNAME" specifies an unknown reference name. Continue anyway.
1020263
The question is: Can I determinate sex only with this or i should do some kind of correction? it is normal to have more reads on chrx as long as it is bigger)
thanks
pau
Comment