-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9013b0
commit a438e14
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,21 @@ ssh [email protected] $cmd2 | |
#ver=$(ssh [email protected] $cmd) | ||
#url="http://epigenomics.sdsc.edu:8088/${SET_ID}/$(cat ${SETQC_FILE/.txt/.rstr.txt})/setQC_report.html" | ||
#python updateLibrariesSetQC.py -s '3' -url $url -v $ver -id $SET_ID | ||
|
||
|
||
################################################## | ||
## Step 4. (optional) delete ENCODE raw fastq files | ||
################################################## | ||
SEQ_DIR='/projects/ps-epigen/seqdata/' | ||
libs=($(awk -v FS='\t' '(NR>1){print $1}' $STATUS_FILE)) | ||
for lib in ${libs[@]} | ||
do | ||
if [ $lib = "ENCODE_"* ] | ||
then | ||
echo $lib | ||
for lib_link in ${SEQ_DIR}/${lib}.fastq.gz ${SEQ_DIR}/${lib}_R1.fastq.gz ${SEQ_DIR}/${lib}_R2.fastq.gz | ||
do | ||
[[ ! -z ${lib_link} ]] && rm "$(readlink -f $lib_link)" | ||
done | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ groups=($(awk '(NR>1){print $2}' $STATUS_FILE|uniq)) | |
n_groups=${#groups[@]} | ||
n_libs=$(awk -v FS='\t' 'BEGIN{n=0};{if(NR>1&&$6=="No") n=n+1}END{print n}' $STATUS_FILE) | ||
|
||
|
||
## determine which pipeline to run | ||
if [ $(grep -c True $STATUS_FILE) -eq 0 ] | ||
then | ||
|
@@ -86,3 +85,20 @@ ssh [email protected] $cmd2 | |
|
||
|
||
#python updateLibrariesSetQC.py -s '3' -url $url -v $ver -id $SET_ID | ||
|
||
################################################## | ||
## Step 4. (optional) delete ENCODE raw fastq files | ||
################################################## | ||
SEQ_DIR='/projects/ps-epigen/seqdata/' | ||
libs=($(awk -v FS='\t' '(NR>1){print $1}' $STATUS_FILE)) | ||
for lib in ${libs[@]} | ||
do | ||
if [ $lib = "ENCODE_"* ] | ||
then | ||
echo $lib | ||
for lib_link in ${SEQ_DIR}/${lib}.fastq.gz ${SEQ_DIR}/${lib}_R1.fastq.gz ${SEQ_DIR}/${lib}_R2.fastq.gz | ||
do | ||
[[ ! -z ${lib_link} ]] && rm "$(readlink -f $lib_link)" | ||
done | ||
fi | ||
done |