Create matrix from ReadsPerGene.out.tab files

0

I'm trying to create a matrix from the raw counts of genes.

Here is the script. It's a nano file and I ran it with srun command.

#!/bin/bash

#SBATCH --mem=64G   for i in *ReadsPerGene.out.tab;

cut -f1,4 $i | grep -v "_" > data/deseq2/counts_4thcol/`basename $i
 ReadsPerGene.out.tab`_counts.txt;

 done

Because I got "permission denied" error from running this nano file, I tried to run it line by line.
However, then I got this error

 -bash: syntax error near unexpected token `cut'

I'm wondering what I can do to make cut be recognized?


star

• 52 views



Source link