Skip to content

Commit

Permalink
minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
BHam-1 committed Sep 8, 2021
1 parent 8f27aa6 commit 043022f
Show file tree
Hide file tree
Showing 5 changed files with 1,029 additions and 1,034 deletions.
34 changes: 18 additions & 16 deletions DNA_data_storage_channel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,44 +78,46 @@ prevDir=$(pwd)
fi



if [ -f "$prevDir/$inPath" ]
then
seq=$(sed -n -e 2p $prevDir/$inPath)
inPath=$prevDir/$inPath
elif [ -f "$inPath" ]
then

seq=$(sed -n -e 2p $inPath)


inPath=$inPath
else
echo "error: input path file is incorrect"
exit 1
fi


if ! touch $outPath
then
echo "error: incorrect output path"
exit 1
fi



echo -n "" > $outPath
if ! touch $prevDir/$outPath > /dev/null 2>&1
then
if ! touch $outPath > /dev/null 2>&1
then
echo "error: incorrect output path"
exit 1
else
outPath=$outPath
fi

else
outPath=$prevDir/$outPath
fi



#launching


#launch

echo -n "-> Launching... "

cd ./simulator


./channelEdit_chained_beg_end_YiKmerDependOnPrevYi.sh $seq $nbrRead $outPath $k
julia simulator_v1.jl $nbrRead $inPath $outPath $k

cd ..

Expand Down
Loading

0 comments on commit 043022f

Please sign in to comment.