-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
executable file
·70 lines (45 loc) · 2.04 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: "DiaMet"
output:
md_document:
variant: gfm
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
message = FALSE,
warning = FALSE,
comment = "#>"
)
```
# DiaMet
This repository aims to analyze those metagenomic Illumina reads that were unable to
be classified by [VirMet](https://github.com/medvir/VirMet) (`undetermined_reads.fastq.gz`)
by aligning them on protein level using [DIAMOND](https://github.com/bbuchfink/diamond)/BLASTx.
`diamet.py` analyzes all reads from `undetermined_reads.fastq.gz`
- as single reads, and
- as contigs created by *de novo* assembly using [megahit](https://github.com/voutcn/megahit).
### How to run
1. Enter timavo.
`ssh timavo`
2. Move into the directory of the sample whose undetermined reads you want to analyze.
`cd /analysis/VirMet/<run>/<sample>/`
3. Run the python script.
`python <path to script>/diamet.py`
### Input
To run `diamet.py`, you need:
- the `diamond` unix executable file which can be found [here](https://github.com/bbuchfink/diamond);
- [megahit](https://github.com/voutcn/megahit) installed on the server;
- a protein database (defined in the code; we are using *swissprot*);
- `undetermined_reads.fastq.gz`, which should be in the current working directory.
### Output
`diamet.py` will output the following files:
- `undetermined_reads_diamet.pdf` which plots taxonomic classification distribution of all hits;
- `undetermined_reads_diamet.tsv` which lists all hits and their Query Seq - id (qseqid),
Query sequence length (qlen), Alignment length (length), Unique Subject Scientific Name (sscinames),
and Unique Subject Super Kingdom (sskingdoms);
- `undetermined_reads_diamet_viral.csv` which lists only the viral hits and their counts;
- `undetermined_contigs_diamet.tsv` which lists all hits of the contigs and their
Query Seq - id (qseqid), Query sequence length (qlen),Alignment length (length),
Unique Subject Scientific Name (sscinames), and Unique Subject Super Kingdom (sskingdoms).