Skip to content
Snippets Groups Projects
Commit ee1d7827 authored by ameyner2's avatar ameyner2
Browse files

Using version/base project id to group output

parent 1c0222e9
No related branches found
No related tags found
No related merge requests found
...@@ -25,9 +25,11 @@ source $CONFIG_SH ...@@ -25,9 +25,11 @@ source $CONFIG_SH
FAMILY_ID=`head -n $PBS_ARRAY_INDEX $PARAMS_DIR/$PROJECT_ID.family_ids.txt | tail -n 1` 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 BASE_PROJECT_ID=`echo $PROJECT_ID | cut -f 1 -d '_'`
# This assumes that ${VERSION}_${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. # a re-run of a family, it should have a new project id.
cd $OUTPUT_DIR/*${VERSION}_${PROJECT_ID}_${FAMILY_ID}* cd $OUTPUT_DIR/${VERSION}_${BASE_PROJECT_ID}/*${VERSION}_${PROJECT_ID}_${FAMILY_ID}*
rm md5sum.txt 2> /dev/null rm md5sum.txt 2> /dev/null
......
...@@ -25,9 +25,11 @@ source $CONFIG_SH ...@@ -25,9 +25,11 @@ source $CONFIG_SH
FAMILY_ID=`head -n $PBS_ARRAY_INDEX $PARAMS_DIR/$PROJECT_ID.family_ids.txt | tail -n 1` 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 BASE_PROJECT_ID=`echo $PROJECT_ID | cut -f 1 -d '_'`
# This assumes that ${VERSION}_${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. # a re-run of a family, it should have a new project id.
cd $OUTPUT_DIR/*${VERSION}_${PROJECT_ID}_${FAMILY_ID}* cd $OUTPUT_DIR/${VERSION}_${BASE_PROJECT_ID}/*${VERSION}_${PROJECT_ID}_${FAMILY_ID}*
for BAM in */*.bam for BAM in */*.bam
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment