Entering edit mode
3.0 years ago
gina02
▴
60
I'm trying to convert my bam files to count data with the help of feature counts in command line, I used the code:
featurecounts -T 8 -a /Users/ria/Desktop/bowtie_2/GCF_000001405.39_GRCh38.p13_genomic.gtf -g 'transcrip_id' -o readcounts/readcount1.txt bam files/-.bam
(readcounts is a the directory for dumping the output)
the error I'm getting is:
ERROR: temporary directory is not writable: 'readcounts'
What does that mean?
Hi,
Does the folder
readcounts
exist? If so, can you write into it? (can you create a text file under that folder?)If so, perhaps
featureCounts
does not accept a path file name, but only file name, although I think it does.Test if you can create a file under the directory
readcounts
(assuming that this folder exists), which you can do in linux by (otherwise create it by saving a dummy text file under this folder):touch readcounts/fake_empty_file.txt
Check if it was created, if it was, try to run the program without giving the folder.
I hope this helps,
António
Problem may be with this
Is that a directory with a space in the name
bam files
? That is bad practice. Also-.bam
is not how you include all BAM files. Wild card use would be*.bam
. You may need to escape the space so trybam\ files/*.bam
or ideally change the name of directory and dobam_files/*.bam
.