Import files
pATLAS has a menu in the sidebar that allow users to import results from mapping
, mash screen
and mash dist
(sequence) approaches. For futher information on the usage of these imports go to this link.
The purpose of this section is to explain how other users may have have their own pipelines importing results to pATLAS, for each one of the import types. All import types expect .json
type of files. Important: the file extension is used to check if the user is attempting to send a wrong type of file and thus to raise a warning if the extension of the file isn't .json
. Therefore, the file must have a .json
extension.
Mapping
The mapping import menu expects a file structure like the following:
The idea is to have an accession (from a plasmid available in this indexes as key and the percentage of coverage as the value for each key:value
pair.
Mash screen
The Mash screen import menu expects a file structure as the following:
Here the keys are identical to the ones above (plasmid accession numbers), but the values are an array of values. The first element of this array corresponds to mash screen identity value, while the second corresponds to an estimation of the copy number of that plasmid.
Note: you can use this index that contain all the plasmids available in pATLAS to mash screen pipelines.
Copy number estimation explanation
The copy number estimation, provided as the second element of the array for each key, is calculated from the median of all the median multiplicity
values available in mash screen output (the third field in each row).
For more on this thread see this code.
Sequence
The sequence import menu in fact imports results from mash dist (which is the distance estimation engine behind pATLAS) and it is intended to give a percentage identity of contigs in relation to all the plasmids available through pATLAS. This expects an import file structure like this:
Again the key is a plasmid accession number available in pATLAS, while the values for are arrays of 3 elements:
The identity percentage (
1 - mash distance
) of a given contig withthe plasmid available in the database.
The number of shared hashes between the query contig and the plasmid available in the database.
Shared hashes explanation
This value is calculated for each row in
mash dist
output.This is the last element of each row in mash dist output.
The contig name retrieved from each row in the mash dist output.
Note: you can use this index that contain all the plasmids available in pATLAS to mash dist pipelines.
Consensus
This requires basically a combination of the above structures to check for common entries between mapping and mash screen results (it still lacks assembly results for this... but we will add this in the future).
This is the structure of this file import:
This script is available and can be used to generate this consensus files.
What if my pipeline doesn't need these indexes?
You can download the pATLAS full database in fasta format from here.
This contains all the accession numbers available in pATLAS.
Last updated