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
61be2bf6
Commit
61be2bf6
authored
5 years ago
by
ameyner2
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit of md5 checksum script for archiving
parent
ce1b6a18
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
submit_trio_wes_checksums.sh
+37
-0
37 additions, 0 deletions
submit_trio_wes_checksums.sh
with
37 additions
and
0 deletions
submit_trio_wes_checksums.sh
0 → 100755
+
37
−
0
View file @
61be2bf6
#!/bin/bash
#PBS -l walltime=48:00:00
#PBS -l ncpus=1,mem=2gb
#PBS -q sgp
#PBS -N trio_whole_exome_checksums
#PBS -j oe
# enable running singletons
if
[
-z
$PBS_ARRAY_INDEX
]
then
if
[
-z
$INDEX
]
then
export
PBS_ARRAY_INDX
=
1
else
export
PBS_ARRAY_INDEX
=
$INDEX
fi
fi
# Expects environment variables to be set
# PROJECT_ID - e.g. 12345_LastnameFirstname
# CONFIG_SH - absolute path to configuration script setting environment variables
source
$CONFIG_SH
FAMILY_ID
=
`
head
-n
$PBS_ARRAY_INDEX
$PARAMS_DIR
/
$PROJECT_ID
.family_ids.txt |
tail
-n
1
`
# This assumes that ${PROJECT_ID}_${FAMILY_ID} is unique, and it should be - if there was
# a re-run of a family, it should have a new project id.
cd
$OUTPUT_DIR
/
*${
PROJECT_ID
}
_
${
FAMILY_ID
}*
rm
md5sum.txt 2> /dev/null
for
file
in
`
find
.
-type
f |
grep
-v
'\.bam'
`
do
md5sum
$file
>>
md5sum.txt
done
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