Hello everyone, I hope you're all doing well! I'm seeking assistance with FeatureCounts for my RNA-seq analysis. I'm using a for loop to process my samples, but I encounter this error with FeatureCounts:
ERROR: temporary directory is not writable: '/home/inda/motorola/RNASeq/Results_RNA_seq/Alignment/Feat_Counts/SRR33194007'
However, when I run the FeatureCounts command for a single sample (without the loop), it works fine. I've attempted to resolve this by adjusting permissions with a command, but the issue persists. Can anyone help?
Consider specifying unique output directories at the level of
$SAMPLE. My guess is the process that makes the original directory locks it so other processes using that name can't write to it (especially if yourforloop is starting multiple processes at the same time).Use
*.bamas input for relevant files as ATpoint suggests. You will get a column of counts for each bam in one count matrix.Thank you very much I'll try it.