SEQanswers

Go Back   SEQanswers > Applications Forums > RNA Sequencing



Similar Threads
Thread Thread Starter Forum Replies Last Post
tximport for salmon output alyamahmoud RNA Sequencing 4 07-12-2017 02:59 AM
Question about .profile file bonifera Bioinformatics 0 07-17-2014 11:12 AM
Novel question---What's .qual file for? harrike Bioinformatics 9 12-18-2012 07:16 PM
Question on BAM file dongfy88 RNA Sequencing 8 09-05-2012 10:35 PM
FPKM_tracking file question rhcr56 Bioinformatics 1 08-25-2011 10:59 AM

Reply
 
Thread Tools
Old 11-06-2017, 02:16 AM   #1
humphreyg
Junior Member
 
Location: Cambridge MA

Join Date: Oct 2017
Posts: 1
Default salmon tximport file vector question

Sorry for the noob question which is probably due to my poor understanding of R... Salmon generates a folder with the sample name for each sample, with inside it, a quant.sf file. Can someone give me a concrete example of how I define the files in the tximport statement. The sample code below from Mike Love doesn't help me, as it seems to have toy names.

files <- file.path(dir, "salmon", samples$run, "quant.sf")
names(files) <- paste0("sample", 1:6)
txi.salmon <- tximport(files, type = "salmon", tx2gene = tx2gene, reader = read_tsv)

Thanks in advance
humphreyg is offline   Reply With Quote
Old 11-06-2017, 05:52 PM   #2
neavemj
Member
 
Location: MA, USA

Join Date: Feb 2014
Posts: 28
Default

Hi humphreyg,

Those commands are building up a 'named vector' of the location of each file. You could manually give it the location of each file like so:

files <- c("salmon/sample1/quant.sf", "salmon/sample2/quant.sf", "salmon/sample3/quant.sf")

names(files) <- c("sample1", "sample2", "sample3")

You'll need to replace "sample1", etc., with the actual names and locations of your files.

Best,

Matt.
neavemj is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO