-
Notifications
You must be signed in to change notification settings - Fork 0
Bulk processing
All the tasks described in Matrix postprocessing may be performed in a single run, generating the matrix (including various types of filtering: by per-sample counts, by counts above a threshold in specified number of samples, by giving a set of k-mers that should be keep exclusively) in various forms, performing normalization, counts postprocessing (including reducting dimensionality), correct p-values.
The exemplary command line is as follows:
./mkmc (1)
-k 27 -f fa \ (2)
--ci 2 --cx 1000000000 \ (3)
--thr-rat 0.5 --thr 3 \ (4)
--flt kmers.fasta \ (5)
-o matrix fa \ (6)
-n freq --save-n \ (7)
--corr pearson spearman kendall -p correlation_phenotype.txt \ (8)
--cv --leave 2 \ (9)
--diff anova dids snr ttest wrs -c de_phenotype.txt \ (10)
--dids-mode quadratic \ (11)
--pval-corr bh \ (12)
--max-corrected-pval 0.01 \ (13)
--entropy \ (14)
--pca --umap \ (15)
-- samples.txt results tmp (16)
The consecutive lines mean as follows:
-
Run MKMC.
-
Count 27-mers; samples k-mers are extracted from FASTA files (see Building a matrix for non-FASTQ input files).
-
Exclude k-mers for a sample which ones within the sample have count less than 2 or more than
$10^9$ (see Filtering k-mers along with building the matrix). -
Exclude k-mers from the matrix which ones has no counts in a half of samples at least 3 (see Filtering k-mers along with building the matrix).
-
Keep only k-mers which are present in kmers.fasta file (see Filtering k-mers along with building the matrix).
-
Generate a matrix in the text form and place k-mers sequences also in FASTA (see Building a matrix in the user-readable form).
-
Normalize counts with frequency count method and save them to disk (see Normalizing counts).
-
Compute correlation (with 3 methods in a single run) between per-sample counts of every k-mer in the matrix with values in
correlation_phenotype.txtfile (see Computing correlation for further information about correlation andcorrelation_phenotype.txtexample). -
Perform cross-validation for every correlation (8) by iteratively treating 2 samples as test ones and computing correlation for another ones (see Generating matrix for cross-validation).
-
Perform differential k-mers analysis (with 5 methods in a single run) between per-sample counts of every k-mer in the matrix with values in
de_phenotype.txtfile (see Performing differential k-mers analysis for further information about diiferential k-mers analysis andde_phenotype.txtexample). -
Results of differential k-mers analysis with DIDS (10) will be squared instead of rooted by default (see Performing differential k-mers analysis).
-
Correct p-values of ANOVA, T-Test, and WRS with Benjamini-Hochberg method (see Correcting p-values).
-
Treat k-mers with p-value no higher than 0.01 as statistically significant (see Correcting p-values).
-
Compute entropy for k-mers counts (see Determining k-mers counts entropy).
-
Reduce the number of counts dimensions from
$(\text{no. of k-mers})\times(\text{no. of samples})$ to$2\times(\text{no. of samples})$ with PCA and UMAP methods in a single run (see Dimensionality reduction). -
Pass to MKMC the file with samples (
samples.txt, see Building a matrix and filtering), an output file name template (results) and a temporary directory (tmp). Note the space after the two dashes.
Passing the parameter --reuse-db (see Building a matrix for later utilization) is also possible.