@sjcrh/proteinpaint-rust 2.39.0 → 2.40.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/indel.rs +7 -2
package/package.json
CHANGED
package/src/indel.rs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Syntax: cd .. && cargo build --release
|
|
2
2
|
|
|
3
3
|
// Test case below:
|
|
4
|
-
//Debug syntax: cd .. && cargo build --release && time cat ~/sjpp/test.txt | ~/proteinpaint/rust/target/release/indel
|
|
4
|
+
//Debug syntax: cd .. && cargo build --release && time cat ~/sjpp/test.txt | ~/sjpp/proteinpaint/rust/target/release/indel
|
|
5
5
|
|
|
6
6
|
// Strictness:
|
|
7
7
|
// 0: No postprocessing, pure indel typing results
|
|
@@ -1356,7 +1356,12 @@ fn main() {
|
|
|
1356
1356
|
//let mut output_string = "[".to_string();
|
|
1357
1357
|
//output_string += &all_alleles.to_string();
|
|
1358
1358
|
output_string.pop();
|
|
1359
|
-
output_string
|
|
1359
|
+
if output_string.len() == 0 {
|
|
1360
|
+
// Pass empty JSON "[]" when no reads are passed back to nodejs
|
|
1361
|
+
output_string = "[]".to_string();
|
|
1362
|
+
} else {
|
|
1363
|
+
output_string += &"]".to_string();
|
|
1364
|
+
}
|
|
1360
1365
|
println!("Final_output:{:?}", output_string);
|
|
1361
1366
|
}
|
|
1362
1367
|
Err(error) => println!("Incorrect json: {}", error),
|