Repository navigation
Conversation
…, fixed model calls in skalo code. Package builds successfully
…ow run ska indel -i file.skf to run skalo. Have verified this works on example data
|
Thanks. To answer your 2 questions: |
|
How about |
|
I'm equally fine with both. Pros: @simonrharris @Leonardini any preference? |
…alo to the main doc
Thinking about this a bit more, I think it's ok to explicitly separate build here, as you'd always also be running align or map |
johnlees
left a comment
There was a problem hiding this comment.
Easy fixes throughout:
- Use log not print
- Remove commented code
We need to have a think about the following:
- Using
IntTinstead ofu128 - Use ska functions where they are already available, and avoid duplication
- Whether we should use a struct in skalo/lib.rs (like the other subcommands/submodules) to simplify the logic
We should also add some tests
Let me know any initial thoughts. If needed we can have a quick call to discuss futher, decide what's worth doing and what's not, who should do what
| #[arg(long, default_value_t = DEFAULT_STRAND)] | ||
| single_strand: bool, | ||
| }, | ||
| Indel { |
There was a problem hiding this comment.
Add doc for the CLI help here with /// above
@rderelle Might be easiest if you or I update the help and API docs before merge
|
|
||
| /// reference genome for SNP positioning | ||
| #[arg(short = 'r', long, help_heading = "input")] | ||
| reference: Option<PathBuf>, |
There was a problem hiding this comment.
I think this should be Option<String>, consistent with reference in ska map
| .map(|(length, _)| length) | ||
| } | ||
|
|
||
| // structure to hold state for each path in the stack |
There was a problem hiding this comment.
| // structure to hold state for each path in the stack | |
| /// Holds state for each path in the stack |
|
we can have a chat next week anytime if needed. |
…e some of the input functions. I also removed Config and DataInfo as global variables and pass references to the struct to the correct functions
|
I've pushed a lot of changes that address 1) making the skalo code generic over I also removed |
johnlees
left a comment
There was a problem hiding this comment.
This is looking really close. I think we just need to harmonise the encoding/decoding between ska and skalo to make the latter consistent with what we're already using
…ry to merge encode/decode kmers and reverse_comp between the ska and skalo code
|
@rderelle we think the only things now needed before this is ready:
Are you ok to do those things, as you're probably best placed to know what's best? |
|
when running SKA lo, the message " skalo v0.4.0" appears. We should consider removing it for consistency with other SKA functions. |
very basic test: to infer 3 SNPs from a tiny skf file (10 samples; k=7)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #86 +/- ##
==========================================
- Coverage 96.07% 93.20% -2.88%
==========================================
Files 16 24 +8
Lines 2803 3943 +1140
==========================================
+ Hits 2693 3675 +982
- Misses 110 268 +158 ☔ View full report in Codecov by Sentry. |
johnlees
left a comment
There was a problem hiding this comment.
@rderelle This is really close to being done, just two things on the test:
- It doesn't appear that any of the code in
positioning.rsis being run. Can you add a second command which also provides a reference genome to run it? - You added an expected result (test_skalo_snps.fas) but never actually check it is the same as the output from the command in the test. You can use
sandbox.file_check()to do this. If the column order can change from run to run, also seevar_hash()
|
@johnlees Ok, I will add a reference genome and positioning so that the output is an ordered SNP alignment that will always be the same. I'm afraid I don't know how to use sandbox.file_check() (I can't find it in other test.rs files). Also, without '-i', '-o' and '-r' in the command line, how can it run without knowing which file is which? |
|
Reference genome added for SNP positioning and SNP alignment updated. SKA now always outputs the same ordered/oriented SNP alignment (tested multiple times on my laptop). |
Hello @johnlees and @rderelle
Started a new branch as it was easier.
src/skaloskalointoCargo.tomlindel(although this could be calledskaloinstead? I don't really mind)ska indel -i file_name.skfruns the skalo code that was in skalo'smain.rs. I have verified this works on the example file that @rderelle providedQuestion now is whether you would like people to only run skalo on provided
.skffiles or whether you'd like them to pass a list of fasta/q files and ska runsbuildinternally before runningindel.