Skip to content

Commit

Permalink
Newline charachter adding to the subset list if there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
cellgeni committed Jan 21, 2025
1 parent 16de250 commit 0af71f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/collect_metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ subset_accessions() {
then
>&2 echo "Narrowing down the dataset using the file $SUBSET"
>&2 echo "New list of the samples to be processed:"
>&2 cat $SUBSET
>&2 cat $SUBSET
## add newline character to the end of the file if there is none
sed -i -e '$a\'
## subset the accessions file
grep -f $SUBSET $SERIES.sample.list > $SERIES.sample.list.tmp
mv $SERIES.sample.list.tmp $SERIES.sample.list
grep -f $SUBSET $SERIES.accessions.tsv > $SERIES.accessions.tsv.tmp
Expand Down

0 comments on commit 0af71f3

Please sign in to comment.