Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
usama committed Jun 10, 2015
1 parent 1c88d36 commit 1c50a05
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ LastGraph in your Velvet output directory.
Defaults to 50000.
- t0=number Optional. Initial temperature. Defaults to 0.008.
- do_proprocess=whatever If set, we do only postprocessing.
- blasr_path=path Optional. Path to BLASR (used with pacbio reads). Default "blasr/alignment/bin".

Moves configuration
-------------------
Expand Down
4 changes: 2 additions & 2 deletions example.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph=../aureus/workDir/LastGraph
graph=../qual/aureus/workDir/LastGraph
t0=0.02
max_iterations=10000
starting_assembly=../aureus/Assemblies/Allpaths-LG/genome.scf.fasta
starting_assembly=../qual/aureus/Assemblies/Allpaths-LG/genome.scf.fasta

[rs1]
cache_prefix=/scratch/GAML/rs1y
Expand Down
11 changes: 6 additions & 5 deletions gaml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
using namespace std;
using namespace boost;

string gBowtiePath = "../programs/bowtie2";
string gBlasrPath = "../programs/blasr/alignment/bin";
string gBowtiePath;
string gBlasrPath;

double ExtractDouble(const string& key, unordered_map<string, string>& cfg, double def) {
if (cfg.count(key)) {
Expand Down Expand Up @@ -81,6 +81,8 @@ struct AssemblySettings {
localp = ExtractInt("local_p", configs, 60);
fixlenp = ExtractInt("fixlen_p", configs, 1);
t0 = ExtractDouble("t0", configs, 0.008);
gBlasrPath = ExtractString("blasr_path", configs, "blasr/alignment/bin");
gBowtiePath = ExtractString("bowtie_path", configs, "bowtie2");
}
};

Expand All @@ -91,8 +93,8 @@ void Optimize(Graph& gr, ProbCalculator& prob_calc, vector<vector<int>> paths,
int longest_read, AssemblySettings& settings) {
int threshold = settings.threshold;
gr.CalcReachability();
/* gr.CalcReachabilityBig(threshold);
gr.CalcReachabilityLimit(2*longest_read);*/
gr.CalcReachabilityBig(threshold);
gr.CalcReachabilityLimit(2*longest_read);
gr.reach_limit_.resize(gr.nodes.size());

int total_len;
Expand All @@ -105,7 +107,6 @@ void Optimize(Graph& gr, ProbCalculator& prob_calc, vector<vector<int>> paths,
printf("%d/%d ", e.first, e.second);
}
printf("\n");
exit(0);
OutputPathsToFile(paths, gr, kmer, threshold, settings.output_prefix);
printf("\n");

Expand Down
4 changes: 2 additions & 2 deletions graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void Graph::CalcReachabilityLimit(int max_dist) {
}
}
}
printf("r %d %d\n", i, reach_limit_[i].size());
// printf("r %d %d\n", i, reach_limit_[i].size());
}
printf("reach limit end\n");
}
Expand All @@ -159,7 +159,7 @@ void Graph::CalcReachabilityBig(int threshold) {
for (int i = 0; i < nodes.size(); i++) {
if (nodes[i]->s.length() <= threshold) continue;
big++;
printf("r %d/%d %d\n", i, nodes.size(), big);
// printf("r %d/%d %d\n", i, nodes.size(), big);
queue<int> fr;
// TODO: usama je chudak a alokuje velke veci casto
// vector<bool> visited(nodes.size());
Expand Down

0 comments on commit 1c50a05

Please sign in to comment.