async def patch(
self,
data: UpdateLabelSchema,
request_example={"name": "Apple 2022"}
) -> Union[r201[Label], r400]:
We can generate a response example automatically by taking the hard-coded example for Label
Pathoscope 2.0 consists of four core and two optional analysis modules for sequencing-based metagenomic profiling.
PathoLib extracts genome reference libraries (target or host/filter) from all available sequences in the NCBI Nucleotide database that belong to a user-defined taxonomic clade.
PathoMap aligns the reads to the target reference library and removes any reads that have sequence similarity with the host or filter genomes.
PathoID resolves read ambguity, identifies which of the target genomes are present in the sample and estimates the proportions of reads originating from each genome.
PathoReport provides two report files:
1. User requests Virtool endpoint. | |
2. Virtool checks for `session_id` cookie and creates unauthenticated session with `session_id` if necessary. | |
3. If no valid `session_token` cookie, login page is rendered. | |
4. Successful login replaces current unauthenticated session with new authenticated session. | |
# Authentication Middleware | |
Uses `aiohttp` middleware defined in `virtool.http.auth`. | |
https://github.com/virtool/virtool/blob/develop/virtool/http/auth.py |