The following covsonar 1 commands are commonly used and need to be supported by covsonar 2 if we are going to transition to using it. To be marked as completed, the command needs to be tested to ensure that it is working, and also it needs to be documented in the covsonar 2 README under the "Switching from covsonar 1" section.
The following covsonar 1 commands are commonly used and need to be supported by covsonar 2 if we are going to transition to using it. To be marked as completed, the command needs to be tested to ensure that it is working, and also it needs to be documented in the covsonar 2 README under the "Switching from covsonar 1" section.
general
alias.json
)autopilot
./sonar.py add --noprogress --force --db $db --file $(realpath !{sequences}) --cpus !{task.cpus} #--cache \$TMPDIR
/sonar.py update --fields accession=covv_accession_id software=covv_assembly_method lineage=covv_lineage technology=covv_seq_technology zip=country date=covv_collection_date submission_date=covv_subm_date --tsv $(realpath !{metadata}) --db $db
./sonar.py optimize --db ${db}
./sonar.py info --db ${db}
./sonar.py remove --db "\$db" --cpus "$task.cpus" --file "sequences-to-delete.ids"
./sonar.py add --noprogress --db "\$db" --file "$day_fasta" --cpus $task.cpus --force
./sonar.py update --db "\$db" --fields accession=taxon lineage=lineage --csv "${clades_pangolin}"
./sonar.py match --ambig --tsv --db "\$db" | gzip > desh-covsonar-temp.tsv.gz
./sonar.py update --db $rki_db --fields accession=IMS_ID zip=SENDING_LAB_PC lab=SENDING_LAB --tsv $desh_passed_meta
./sonar.py match --db "$rki_db" --submission_date "${workflow.profile.contains('test') ? '2021-01-26' : params.date }" --tsv > "covsonar-match-yesterday.tsv"
vocal paper
python sonar.py match --lineage B.1.1.529 --lineage BA.% --with-sublineage --date 2021-12-01:2021-12-31 --db $db --tsv
python sonar.py match --lineage ^B.1.1.529 --lineage ^BA.% --date 2021-12-01:2021-12-31 --db $db --tsv
gisaid upload
{params.tool} add --db {output.db} -f {input.fasta} --cpus {threads} &> {log}
{params.tool} match --only_frameshifts --db {input.db} 1> {output} 2> {log}
interactive use