-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only one sample is Mapped #2207
Comments
Maybe the problem in the second sample. Did you try to rearrange the samples order? |
I've tried shifting the samples and even running them one by one, but I still get this error: [p@maping]$ ./maping14.sh |
Not sure at which moment the process is killed. How long did it run after the "Sep 05 18:10:25 ..... started mapping"? From the looks of it, the HPC might have a problem with the task. I would try to modify maping14.sh by changing "--outSAMtype BAM SortedByCoordinate" to "--outSAMtype BAM Unsorted" and sort it later with samtools |
Hi,
I'm encountering an issue while mapping some samples using STAR. The process begins normally and successfully maps the first sample, but then the subsequent samples are ignored. When I attempt to run the samples individually, I receive "KILLED" or "FATAL ERROR" messages after the first sample is mapped.
I've already tried reinstalling STAR, regenerating the gene index, and remapping, but the problem persists. Could you please provide any insights or suggestions to resolve this?
Thank you for your help!!
**SCRIPTS
Gene Index script**
#!/bin/bash
#SBATCH -J rna_sequencing
#SBATCH --nodes=4
#SBATCH --cpus-per-task=4
#SBATCH --time=48:00:00
#SBATCH --account=...
#SBATCH --partition=normal_q
#SBATCH --mail-user=...
#SBATCH --mail-type=ALL
#SBATCH --output=output.log
#SBATCH --error=error.log
#SBATCH --genomeChrBinNbits=14
Set paths
genomeDir="/p/genomeDir"
genomeFastaFiles="/p/refGenome/ncbi_dataset/data/GCF_002263795.3/GCF_002263795.3_ARS-UCD2.0_genomic.fna"
rawDataDir="/p/rawdata/trimmed"
bamFilesDir="/p/bamFiles"
gffFile="/p/refGenome/ncbi_dataset/data/GCF_002263795.3/genomic.gff"
results="/p/results"
STAR Indexing
STAR --runThreadN 1 --runMode genomeGenerate --genomeDir $genomeDir --genomeFastaFiles $genomeFastaFiles --sjdbGTFfile $gffFile
Mapping script
#!/bin/bash
#SBATCH -J rna_sequencing
#SBATCH --nodes=4
#SBATCH --cpus-per-task=4
#SBATCH --time=48:00:00
#SBATCH --account=...
#SBATCH --partition=normal_q
#SBATCH --mail-user=...
#SBATCH --mail-type=ALL
#SBATCH --output=output.log
#SBATCH --error=error.log
Set paths
genomeDir="/.../genomeDir"
genomeFastaFiles="/p.../ncbi_dataset/data/GCF_002263795.3/GCF_002263795.3_ARS-UCD2.0_genomic.fna"
rawDataDir="/p/rawdata/trimmed"
bamFilesDir="/p/bamFiles"
gffFile="/p/refGenome/ncbi_dataset/data/GCF_002263795.3/genomic.gff"
results="/presults"
Gene Mapping
for sample in H_1 H_2 H_3 H_4 H_5 H_6 H_7 P_1 P_2 P_3 P_4 P_5 P_6 P_7 P_8; do
STAR --genomeDir "$genomeDir/"
--readFilesIn "$rawDataDir/${sample}_1_paired.fq" "$rawDataDir/${sample}2_paired.fq"
--outFileNamePrefix "$bamFilesDir/${sample}"
--outSAMtype BAM SortedByCoordinate
done
The text was updated successfully, but these errors were encountered: