Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README.md with bash executable code and bash code #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ python src/simulation_reads.py -n 25 -m 25 -p 5 -k 1 -s 0 -d 0.1 -a 0.001 -b 0.0
An example of usage is as follows.

$ python src/condor.py -i data/sample/overview_character_matrix.csv -a 0.0018 -b 0.001 -k 1 -r data/sample/overview_read_count.csv -v data/sample/overview_variant_count.csv -o data/sample/overview

**An example of usage with only bash command**
```
bash condor.sh data/sample/overview_character_matrix.csv data/sample/overview_read_count.csv data/sample/overview_variant_count.csv data/sample/overview
```
39 changes: 39 additions & 0 deletions condor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

#inspired from SCARLET[https://github.com/raphael-group/scarlet]

if [ "$#" -le 3 ]; then
echo """

usage: condor.py [-h] [-i I] [-r R] [-v V] [-s S] [-a A] [-b B] [--ado ADO] [-k K] -o O [-t T]

optional arguments:
-h, --help show this help message and exit
-i I csv file with mutation matrix and cluster id
-r R csv file with total read count matrix
-v V csv file with variant read count matrix
-s S file containing list of SNPs
-a A false positive error rate [0.001]
-b B false negative error rate [0.001]
--ado ADO precision parameter for ADO
-k K maximum number of losses for an SNV
-o O output prefix
-t T time limit in seconds [1800]

"""
exit 1
fi


character_matrix=$1
read_count=$2
variant_count=$3
output_prefix=$4


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

python $DIR/src/condor.py -i $character_matrix -a 0.0018 -b 0.001 -k 1 -r $read_count -v $variant_count -o $output_prefix


dot -Tpdf ${output_prefix}_tree.dot -o ${output_prefix}_tree.pdf -v
dot -Tpdf ${output_prefix}_tree_without_cells.dot -o ${output_prefix}_tree_without_cells.pdf -v