Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trio-whole-exome
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
Container Registry
Model registry
Operate
Environments
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
igmmbioinformatics
trio-whole-exome
Commits
47cead98
Commit
47cead98
authored
5 years ago
by
ameyner2
Browse files
Options
Downloads
Patches
Plain Diff
Added scripts for archiving trio whole exomes, archive path in config file
parent
6cc144e5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
submit_trio_wes_archive_project.sh
+59
-0
59 additions, 0 deletions
submit_trio_wes_archive_project.sh
submit_trio_wes_priority_and_qc_checksums.sh
+46
-0
46 additions, 0 deletions
submit_trio_wes_priority_and_qc_checksums.sh
trio_whole_exome_config.sh
+2
-0
2 additions, 0 deletions
trio_whole_exome_config.sh
with
107 additions
and
0 deletions
submit_trio_wes_archive_project.sh
0 → 100755
+
59
−
0
View file @
47cead98
#!/bin/bash
#PBS -l walltime=24:00:00
#PBS -l ncpus=1,mem=2gb
#PBS -q uv2000
#PBS -N trio_whole_exome_archive_project
#PBS -j oe
# Expects environment variables to be set
# PROJECT_ID - e.g. 12345_LastnameFirstname
# PRIORITY_DIRS - e.g. 05122019,07122019 (colon delimited if more than one)
# CONFIG_SH - absolute path to configuration script setting environment variables
# Source the configuration file
source
$CONFIG_SH
# Move to the output directory
cd
$OUTPUT_DIR
# Copy bcbio output files
rsync
-av
*
_
$PROJECT_DIR
*
$ARCHIVE_DIR
/
# Copy qc files
cd
qc
mkdir
-p
$ARCHIVE_DIR
/qc
rsync
-av
$PROJECT_DIR
*
$ARCHIVE_DIR
/qc/
# Copy prioritization files
cd
../prioritization
mkdir
-p
$ARCHIVE_DIR
/prioritization
DIRS
=
$(
echo
$PRIORITY_DIRS
|
tr
":"
"
\n
"
)
for
dir
in
$DIRS
do
rsync
-av
$DIR
$ARCHIVE_DIR
/prioritization/
done
# move to the archive area and check the md5s
cd
$ARCHIVE_DIR
for
family_dir
in
*
_
$PROJECT_DIR
*
do
cd
$family_dir
md5sum
--check
md5sum.txt
cd
..
done
cd
qc
md5sum
--check
${
PROJECT_ID
}
_qc_report.md5sum.txt
cd
../prioritization
for
dir
in
$DIRS
do
cd
$dir
md5sum
--check
../
$dir
.md5sum.txt
cd
..
done
This diff is collapsed.
Click to expand it.
submit_trio_wes_priority_and_qc_checksums.sh
0 → 100755
+
46
−
0
View file @
47cead98
#!/bin/bash
#PBS -l walltime=48:00:00
#PBS -l ncpus=1,mem=2gb
#PBS -q sgp
#PBS -N trio_whole_exome_priority_and_qc_checksums
#PBS -j oe
# Expects environment variables to be set
# PROJECT_ID - e.g. 12345_LastnameFirstname
# PRIORITY_DIRS - e.g. 05122019,07122019 (colon delimited if more than one)
# CONFIG_SH - absolute path to configuration script setting environment variables
source
$CONFIG_SH
# calculate checksums on the qc files for this project
cd
$OUTPUT_DIR
/qc
md5sum
${
PROJECT_ID
}
_qc_report.html
>
${
PROJECT_ID
}
_qc_report.md5sum.txt
for
file
in
`
find
${
PROJECT_ID
}
_qc_report_data
-type
f
`
do
md5sum
$file
>>
${
PROJECT_ID
}
_qc_report.md5sum.txt
done
# calculate checksusms on the prioritization files for this project
cd
$OUTPUT_DIR
/prioritization
DIRS
=
$(
echo
$PRIORITY_DIRS
|
tr
":"
"
\n
"
)
for
dir
in
$DIRS
do
cd
$dir
rm
../
$dir
.md5sum.txt 2> /dev/null
for
file
in
`
find
.
-type
f
`
do
md5sum
$file
>>
../
$dir
.md5sum.txt
done
cd
..
done
This diff is collapsed.
Click to expand it.
trio_whole_exome_config.sh
+
2
−
0
View file @
47cead98
...
...
@@ -16,4 +16,6 @@ CONFIG_DIR=$BASE/config
WORK_DIR
=
$BASE
/work
OUTPUT_DIR
=
$BASE
/output
ARCHIVE_DIR
=
/archive/u027/trio_whole_exome
export
PATH
=
/home/u027/project/software/bcbio/tools/bin:
$PATH
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