Skip to content

Commit

Permalink
fix: fix paths in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed Mar 8, 2023
1 parent 19ab3ef commit aebefa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/atac-post-process-human-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ bash src/align_stats.sh $NUM_CORES "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR "$MOUNT_DIR"

# Create final qc report merging the metadata and workflow qc scores
echo "Generating merged qc reports..."
Rscript src/merge_atac_qc_human.R -w "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR/$SAMPLE_METADATA_FILENAME -q "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR/qc/"$BATCH_PREFIX"_qc.tsv -a "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR/merged_chr_info.csv -o "$MOUNT_DIR"/${ATAC_OUTPUT_DIR#"gs://"}/
Rscript src/merge_atac_qc_human.R -w "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR/$SAMPLE_METADATA_FILENAME -q "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR/croo/final/qc/"$BATCH_PREFIX"_qc.tsv -a "$MOUNT_DIR"/$LOCAL_ATAC_OUT_DIR/merged_chr_info.csv -o "$MOUNT_DIR"/${ATAC_OUTPUT_DIR#"gs://"}/

echo "Generating sample counts matrix..."
bash src/encode_to_count_matrix_human.sh $ATAC_OUTPUT_DIR "$(pwd)"/src/ $NUM_CORES
bash src/encode_to_count_matrix_human.sh $LOCAL_ATAC_OUT_DIR "$(pwd)"/src/ $NUM_CORES

echo "Done!"
2 changes: 1 addition & 1 deletion src/qc2tsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd "$random_string" || exit
gsutil ls "$gcp_path"/*/*/qc/qc.json >file_list.txt
echo "Done creating file list"
qc2tsv --file file_list.txt --collapse-header >"$outfile_name"
gsutil mv "$outfile_name" "$gcp_path"/final/
gsutil mv "$outfile_name" "$gcp_path"
echo "Done creating atac-seq qc report"

cd ..
Expand Down

0 comments on commit aebefa4

Please sign in to comment.