Work story Object Save
0
0
Entering edit mode
5.6 years ago

Hello all, I've done features count with Rsubread package and got counts objects in my work story, Now I want to save each object as a txt files for another steps

Any help will be good to me.

Best regard

R Rsubread • 973 views
ADD COMMENT
0
Entering edit mode

Type in R:

?write.table
ADD REPLY
0
Entering edit mode

Hello, I done this :

> seq_M2<-featureCounts("M2.bam",
                      annot.inbuilt="hg38",
                      annot.ext="Homo_sapiens.GRCh38.95.gtf",
                      isGTFAnnotationFile=TRUE,
                      GTF.featureType="exon",
                      GTF.attrType="gene_id",
                      chrAliases=NULL)

For feature counts, it works goodly, and to export results I done :

>write.table(seq_M2=data.frame(seq_M2$annotation[,c("GeneID","Length")],seq_M2$counts,stringsAsFactors=FALSE),file="c_M2.txt",quote=FALSE,sep="\t",row.names=FALSE)

And I got this message :

Error in write.table(seq_M2 = data.frame(seq_M2$annotation[, c("GeneID",  : 
  unused argument (seq_M2 = data.frame(seq_M2$annotation[, c("GeneID", "Length")], seq_M2$counts, stringsAsFactors = FALSE))

I don't know why

Help please. Thinks

ADD REPLY
1
Entering edit mode

Just remove the first seq_2M = Write.table does not have an argument of that name.

ADD REPLY

Login before adding your answer.

Traffic: 2796 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