Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datautils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo
datautils
Commits
6a530e75
Commit
6a530e75
authored
10 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
cont dge automation
parent
7f489292
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bash/lsf_rna_seq.sh
+58
-8
58 additions, 8 deletions
bash/lsf_rna_seq.sh
with
58 additions
and
8 deletions
bash/lsf_rna_seq.sh
+
58
−
8
View file @
6a530e75
#http://wiki.bash-hackers.org/howto/getopts_tutorial
## create fastq report for all fastq and fastq.gz files in the current directory
dge_fastqc
(){
while
getopts
"o:"
curopt
;
do
case
$curopt
in
o
)
outputDir
=
$OPTARG
;
esac
done
shift
$((
$OPTIND
-
1
))
fastqFiles
=
$*
#if [ -z "$fastqFiles" ]; then
if
[
$#
-lt
1
]
;
then
echo
"Usage: dge_fastqc [-o <output_directory>] [<fastq.gz file>]+"
>
&2
;
return
;
fi
## use default directory if not specified
if
[
-z
"
$outputDir
"
]
;
then
outputDir
=
"fastqc_reports"
fi
if
[
!
-d
"
$outputDir
"
]
;
then
echo
"creating output directory '
$outputDir
'"
mkdir
$outputDir
fi
for
fastqFile
in
$fastqFiles
;
do
echo
"fastqcing
$fastqFile
"
if
[
!
-f
$fastqFile
]
;
then
continue
;
fi
mysub
"fastqc__
$(
basename
$fastqFile
)
"
"fastqc -j /sw/bin/java -o
$outputDir
-f fastq
$fastqFile
"
-q
medium | joblist .fastqc_jobs
done
wait4jobs .fastqc_jobs
mailme
"fastqc done for
$outputDir
"
# todo create some summary report here
}
export
-f
dge_fastqc
#http://wiki.bash-hackers.org/howto/getopts_tutorial
dge_tophat_se
(){
# http://stackoverflow.com/questions/18414054/bash-getopts-reading-optarg-for-optional-flags
...
...
@@ -13,20 +62,18 @@ done
shift
$((
$OPTIND
-
1
))
if
[
-z
"
$IGENOME
"
]
||
[
$#
-eq
1
]
;
fastqFiles
=
$*
if
[
-z
"
$IGENOME
"
]
||
[
-z
"
$fastqFiles
"
]
;
then
echo
"Usage: dge_tophat_se -i <path to igenome> [<fastq.gz file>]+"
>
&2
;
return
;
fi
fastqFiles
=
$*
echo
"running tophat using igenome
$IGENOME
for the following files"
echo
$
export
bowtie_gindex
=
"
$IGENOME
_BASE
/Sequence/Bowtie2Index/genome"
export
gtfFile
=
"
$IGENOME
_BASE
/Annotation/Genes/genes.gtf"
export
bowtie_gindex
=
"
$IGENOME
/Sequence/Bowtie2Index/genome"
export
gtfFile
=
"
$IGENOME
/Annotation/Genes/genes.gtf"
#head $gtfFile
if
[
!
-f
$gtfFile
]
;
then
>
&2
echo
"gtf '
$gtfFile
' does not exis"
;
return
;
fi
...
...
@@ -35,6 +82,9 @@ if [ -z "$(which tophat)" ]; then
>
&2
echo
"no tomcat binary in PATH"
;
return
;
fi
echo
"running tophat using igenome '
$IGENOME
' for the following files"
#fastqFiles=$(ls $baseDir/treps_pooled/*fastq.gz)
for
fastqFile
in
$fastqFiles
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment