Seismic-rna

Latest version: v0.21.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 12

0.21.1

Bug Fixes

- Changed obsolete "debug" message to "detail" to prevent crash when using `--keep-discontig`
- Updated the help text for `--verbose` and `--quiet`

What's Changed
* 0.21.1 by matthewfallan in https://github.com/rouskinlab/seismic-rna/pull/18


**Full Changelog**: https://github.com/rouskinlab/seismic-rna/compare/v0.21.0...v0.21.1

0.21.0

New Features

- Replace Cutadapt and FastQC with fastp for one-step trimming and QC, faster processing, and a single report file.
- Replace the logging framework (using Python's standard library utilities) with a custom logging module that has seven levels (rather than 5) for greater control over verbosity.

Bug Fixes

- Fixed a bug in the jackpotting calculation that caused a systematic bias of roughly 1%.

Documentation

- Added an illustration of what happens during each main step of the workflow.
- Added a note about installing with Mamba.

Miscellaneous

- Changed the graph color palettes for bases (A/C/G/T) and relationships.
- Changed the colors of logging messages to make them easier to read on dark and light backgrounds.

What's Changed
* 0.21.0 by matthewfallan in https://github.com/rouskinlab/seismic-rna/pull/17


**Full Changelog**: https://github.com/rouskinlab/seismic-rna/compare/v0.20.1...v0.21.0

0.20.1

New Features

- The clustering step now calculates a "jackpotting quotient" to measure how much bias there is in the dataset. The calculation is expensive and can be toggled with ``--jackpot/--no-jackpot``.
- The clustering step now outputs the per-run statistics as a CSV file and a graph for every statistic, rather than writing them into the cluster report.
- It also ouputs scatter plots comparing the observed and expected counts for each number of clusters.
- The new command ``seismic +datapath`` locates and prints the location of the data path for RNAstructure (assuming it has been installed properly), to which the ``DATAPATH`` environment variable should be set.
- The ``raise_on_error`` parameter can now be used to make SEISMIC-RNA raise an Exception instead of logging an error message any time ``logger.error()`` or ``logger.critical()`` is called. This is useful for testing the whole workflow, when errors should cause the test to fail. Only available through the Python API.
- SEISMIC-RNA now has a new logo!

Bug Fixes

- Fixed a bug where clustering would run by default in ``seismic wf``. Now, clustering is enabled with the flag ``--cluster``.
- Fixed a bug causing ``seismic align`` and ``seismic wf`` to delete BAM files when aligning demultiplexed FASTQ files.
- Assume that the folding energy for RNA structures missing an explicit energy is 0 rather than NaN.
- Added ``kaleido`` to list of dependencies to fix a bug about a missing optional dependency for Plotly.
- Fixed a bug where ``seismic +sim ends`` could produce out-of-bounds 5' or 3' ends.

**Full Changelog**: https://github.com/rouskinlab/seismic-rna/compare/v0.20.0...v0.20.1

0.20.0

New Features

- SEISMIC-RNA can now be installed with Conda (Bioconda channel): ``conda install -c bioconda -c conda-forge seismic-rna``
- In ``seismic wf``, clustering is now enabled using ``--cluster`` rather than setting the maximum number of clusters (``--max-clusters/-k``) to a positive integer.
- Throughout SEISMIC-RNA, the name for the number of clusters has been renamed from the more confusing "Order" of the clustering to "K", which is a general term for the number of clusters (e.g. as in K-means clustering).
- Clustering can now find an unlimited number of clusters, specified by setting ``--max-clusters/-k`` to 0 (the default). In this case, clustering will continue until either the BIC fails to decrease or the number of clusters does not pass filters (see below).
- If you specify a maximum number of clusters (with ``-k``), then you can now choose to force clustering using every number of clusters up to that maximum (with ``--try-all-ks``) or stop when the latest number of clusters is not better than the previous number (the only option in former versions).
- You can now set a minimum number of clusters with ``--min-clusters``, which makes clustering _start_ at that number of clusters (e.g. if you set it to 3, then SEISMIC-RNA will start with 3 clusters and never try 1 or 2).
- You can also choose whether to keep all numbers of clusters you tried (``--keep-all-ks``) or only the number of clusters that gave the best BIC among those that passed filters (see below). Note that with the latter option, if no clusters pass the filters (which can happen if you use ``--min-clusters`` greater than 1), then no clusters will be output, which will cause an error in the table step.
- Clustering now includes filters to make sure the clusters are valid, rather than simply sorting by BIC.
- One set of filters removes individual EM runs:
- ``--max-pearson-run``: upper limit on the Pearson correlation between any two clusters
- ``--min-nrmsd-run``: lower limit on the normalized RMSD between any two clusters
- Another set of filters removes each numbers of clusters (K) where the runs are not sufficiently consistent:
- ``--min-pearson-vs-best``: requires at least one suboptimal run to have at least this Pearson correlation vs. the best run for that K.
- ``--max-nrmsd-vs-best``: requires at least one suboptimal run to have at most this normalized RMSD vs. the best run for that K.
- ``--max-loglike-vs-best``: requires the best suboptimal run to have at most this difference in log likelihood vs. the best run for that K.
- Scatter plots now print the correlation on the plot; choose the correlation metric using ``--metric``.
- ROC plots now print the area under each curve.
- SEISMIC-RNA can now guess the ``DATAPATH`` environment variable when RNAstructure is installed either manually from the Mathews Lab website or with Conda.
- In the Python API, the Header class now accepts arbitrary numbers of clusters, rather than requiring an unbroken range between a minimum and a maximum number of clusters.
- Accordingly, table files with clusters can now contain arbitrary numbers of clusters, rather than needing to start with 1 cluster and count up to the maximum number of clusters.
- New unit tests have been added to verify that the new Header class functions properly, that batch counting and accumulation functions work with averages and clusters, and that the entire workflow runs on simulated data.
- The GitHub Actions workflow now enforces all unit tests to finish successfully; if not, the workflow checks are marked as failing. Previously, it would run the unit tests but do nothing with the test results.
- The GitHub Actions workflow now builds and deploys the documentation automatically each time the source code is updated, saving the need to build the documentation manually and push it to GitHub with every update (or even to keep the built documentation in the GitHub repo).

Removed Features

- ``seismic table`` no longer generates per-read tables from clustered datasets (i.e. ``clust-per-read.csv``). This is because these tables had been of little to no value and were easy to misinterpret: in fact, generating a histogram of number of mutations per read produced the wrong results, with no straightforward fix.
- ``+addclust`` and ``+delclust`` have been removed because they are less useful with the new cluster filter features, while maintaining both of these commands including the new features would be substantially more complicated.
- The built documentation (``seismic-rna/docs``) has been removed from the GitHub repository, to reduce its size and to remove the need to manually rebuild the docs each time the documentation source files are updated. Only the documentation source files (``seismic-rna/src/userdocs``) remain.

**Full Changelog**: https://github.com/rouskinlab/seismic-rna/compare/v0.19.2...v0.20.0

0.19.2

Bug Fixes

- Fixed a bug where single-end reads would be discarded using `--sep-strands`.
- Fixed bugs causing the relate step to fail with a mixture of two-mate and one-mate paired-end reads (possible with Bowtie2 mixed mode, `--bt2-mixed`).
- Updated the read counter and the SAM parser to handle mixed mode properly; added unit tests.
- Implemented a more robust method of creating temporary directories.
- Changed the FASTA parser and writer so that they raise errors if any name/sequence is invalid, rather than skipping invalid sequences and returning the rest, to avoid a potential bug where if two references had the same name, it could be unclear which sequence would actually be used (which has become more of a concern with `--sep-strand` because minus-strand references can be created automatically).

**Full Changelog**: https://github.com/rouskinlab/seismic-rna/compare/v0.19.1...v0.19.2

0.19.1

New Features

- `seismic wf` now accepts `--sep-strands`. This change is possible because `seismic relate` now also accepts `--sep-strands` and, if that option is given, will auto-generate a FASTA file of both strands. Thus, you can also run `seismic align` and `seismic relate` separately, as long as you pass the same FASTA file and the same `--sep-stands` and `--minus-label` options to both commands.
- `seismic +splitbam` is a new command that accepts one or more BAM (or CRAM) files and splits each file into one BAM file for each reference, just like the last phase of `seismic align`. It also accepts the `--sep-strands` option if you want to split each reference further into plus and minus strands. This feature is useful when you generate or obtain a BAM file outside of SEISMIC-RNA that contains multiple references, and you need to split it into one file for each reference so that you can pass those files into `seismic relate` or `seismic wf`.

Removed Features

- `seismic align` with `--sep-strands` no longer generates a FASTA file of both strands because it is no longer necessary due to the first new feature (above).

Bug Fixes

- Fixed bug where an empty directory called `align-xxxxxxxx` would appear in a sample's output directory if the `align` output directory did not yet exist.

**Full Changelog**: https://github.com/rouskinlab/seismic-rna/compare/v0.19.0...v0.19.1

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.