RNA seq- exclude genes in y chromosome
1
0
Entering edit mode
3.3 years ago
Rob ▴ 170

Hi friends, I downloaded TCGA-HTseq raw count data for coding genes. is there R-script to exclude genes related to Y chromosome from this data?

Thanks

rna-seq gene • 662 views
ADD COMMENT
1
Entering edit mode
3.3 years ago

If you are working with BED-formatted data, or a tab-delimited text file with the chromosome in the first column, you could use awk to filter out rows by chromosome name:

$ awk '($1 != "chrY")' in.bed > out.bed

Then read it into R for further processing.

ADD COMMENT
0
Entering edit mode

Thanks Alex Reynolds Is this r-code? I could not run this in r. it gives error. This is the error:

Error in .helpForCall(topicExpr, parent.frame()) : 
  no methods for ‘awk’ and no documentation for it as a function
ADD REPLY

Login before adding your answer.

Traffic: 2367 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6