Skip to content

Commit

Permalink
added supporting samplesheet script
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalmer37 committed Apr 10, 2024
1 parent 372c8ed commit fc9c4ad
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions extra/make_sample_sheet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
if [ $# -ne 2 ]; then
echo "USAGE: bash make_sample_sheet.sh [DIRNAME] [OUTFILE]"
exit 0
fi


DIR=$1
OUTFILE=$2

echo "sample,fastq_1,fastq_2" > $OUTFILE

for f in $DIR/*R1*gz; do
file1=`basename $f`
name=`echo $file1 | cut -d\. -f1 | cut -d_ -f1`
file2=`echo "$file1" | sed 's/R1/R2/g'`

echo $name
echo $file1

echo "$name,$DIR/$file1,$DIR/$file2" >> $OUTFILE
done

0 comments on commit fc9c4ad

Please sign in to comment.