-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path1.7.makeref.sbatch
47 lines (37 loc) · 1.92 KB
/
1.7.makeref.sbatch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Copy/paste this job script into a text file and submit with the command:
# sbatch thefilename
#SBATCH --time=4:00:00 # walltime limit (HH:MM:SS)
#SBATCH --nodes=1 # number of nodes
#SBATCH --ntasks-per-node=1 # 36 processor core(s) per node
#SBATCH --mem=8G # maximum memory per node
#SBATCH --job-name="multiqc"
#SBATCH --array=1-9
#SBATCH --output="logs/out.addRG.%A_%a.txt" # job standard output file (%j replaced by job id)
#SBATCH --error="logs/err.addRG.%A_%a.txt" # job standard error file (%j replaced by job id)
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
i=$(($SLURM_ARRAY_TASK_ID - 1))
perl -p -e 'if (/gene_name/) {s{(gene_id\s+"([^"]+).+?gene_name\s+")([^"]+)}{$1$2_$3}} \
elsif (!/^#/ && /gene_id/) {s/(gene_id\s+"([^"]+)";\s+)/$1gene_name "$2"; /}' Sus_scrofa.Sscrofa11.1.97.gtf > \
Sus_scrofa.Sscrofa11.1.97.for.cellranger.gtf
gtf=Sus_scrofa.Sscrofa11.1.97.for.cellranger.gtf
out=Sus_scrofa.genome
mkdir -p $out
cellranger mkgtf Sus_scrofa.Sscrofa11.1.92.gtf Sus_scrofa.Sscrofa11.1.92.gtf.filtered.gtf \
--attribute=gene_biotype:IG_C_gene \
--attribute=gene_biotype:IG_V_gene \
--attribute=gene_biotype:lincRNA \
--attribute=gene_biotype:miRNA \
--attribute=gene_biotype:misc_RNA \
--attribute=gene_biotype:Mt_rRNA \
--attribute=gene_biotype:Mt_tRNA \
--attribute=gene_biotype:protein_coding \
--attribute=gene_biotype:pseudogene \
--attribute=gene_biotype:ribozyme \
--attribute=gene_biotype:rRNA \
--attribute=gene_biotype:scaRNA \
--attribute=gene_biotype:snoRNA \
--attribute=gene_biotype:snRNA \
--attribute=gene_biotype:sRNA \
--attribute=gene_biotype:TR_J_gene \
--attribute=gene_biotype:TR_V_gene