Skip to content

Commit

Permalink
add experiment parameter for reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Strideradu committed Oct 25, 2018
1 parent bdde9e5 commit 8732331
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Usage
----------
At this stage, our tool consists three part:

####Suffix array filter
#### Suffix array filter

A prebuild excecuteble file using GCC 4.8.2 can found under /sa_filter/

Expand All @@ -30,7 +30,7 @@ To excecute (although this will be included in the script)
```
The program will do all against all to compare shared kmer

####Modified YASS for group hits
#### Modified YASS for group hits

A prebuild excecuteble file using GCC 4.8.2 can found under /yass/

Expand All @@ -47,7 +47,7 @@ The output format is (seperated by tab)
query_id, query length, target_id, target_length, groups(x, diagonal, length)
```

####Python script
#### Python script

To run GroupK, after build the two program above
```
Expand Down
54 changes: 42 additions & 12 deletions Script/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Script/GroupK.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
with open(group_output, "w") as fout:
for query_id in filter_dict.keys():
record = record_dict[query_id]
query_save = save_path + "query_k{}_c{}.fasta".format(k, threshold)
query_save = os.path.join(save_path, "query_k{}_c{}.fasta".format(k, threshold))
record.description = ""
SeqIO.write(record, query_save, "fasta")

Expand All @@ -73,10 +73,10 @@
for target_id in target_list:
record = record_dict[target_id]
target_output.append(record)
target_save = save_path + "target_k{}_c{}.fasta".format(k, threshold)
target_save = os.path.join(save_path, "target_k{}_c{}.fasta".format(k, threshold))
SeqIO.write(target_output, target_save, "fasta")

temp_output = save_path + "groups_temp_k{}_c{}.out".format(k, threshold)
temp_output = os.path.join(save_path, "groups_temp_k{}_c{}.out".format(k, threshold))
yass_command = yass_path + ' -p "{}" -m {} -i {} -o {} {} {}'.format('#' * args.k2, args.accuracy, args.gap,
temp_output, query_save, target_save)
process = subprocess.Popen(yass_command, stdout=subprocess.PIPE, shell=True)
Expand Down
Binary file added experiment/Ecoli_15Xof150X_ROC.xlsx
Binary file not shown.
Binary file added experiment/Ecoli_30X_sim_ROC_min100.xlsx
Binary file not shown.
Binary file added experiment/Human_foot_3_bacteria.xlsx
Binary file not shown.

0 comments on commit 8732331

Please sign in to comment.