Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/FASTA-format/Zkl/fasta-format-1.zkl
Normal file
8
Task/FASTA-format/Zkl/fasta-format-1.zkl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fcn fasta(data){ // a lazy cruise through a FASTA file
|
||||
fcn(w){ // one string at a time, -->False garbage at front of file
|
||||
line:=w.next().strip();
|
||||
if(line[0]==">") w.pump(line[1,*]+": ",'wrap(l){
|
||||
if(l[0]==">") { w.push(l); Void.Stop } else l.strip()
|
||||
})
|
||||
}.fp(data.walker()) : Utils.Helpers.wap(_);
|
||||
}
|
||||
1
Task/FASTA-format/Zkl/fasta-format-2.zkl
Normal file
1
Task/FASTA-format/Zkl/fasta-format-2.zkl
Normal file
|
|
@ -0,0 +1 @@
|
|||
foreach l in (fasta(File("fasta.txt"))) { println(l) }
|
||||
5
Task/FASTA-format/Zkl/fasta-format-3.zkl
Normal file
5
Task/FASTA-format/Zkl/fasta-format-3.zkl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
data:=Data(0,String,
|
||||
">Rosetta_Example_1\nTHERECANBENOSPACE\n"
|
||||
">Rosetta_Example_2\nTHERECANBESEVERAL\nLINESBUTTHEYALLMUST\n"
|
||||
"BECONCATENATED");
|
||||
foreach l in (fasta(data)) { println(l) }
|
||||
Loading…
Add table
Add a link
Reference in a new issue