Skip to main content

BIgMAG

BIgMAG (Board InteGrating Metagenome-Assembled Genomes) is a dashboard to display multiple metagenome quality metrics and taxonomical annotation from several tools using the unique file generated by MAGFlow or nf-core/mag.

Static Badge DOI

A bite you will not resist!

If you are curious how the dashboard looks like and check its layout even before starting to work with it, please visit this link (it is not a virus, we promise!): https://bigmag.online/ (please be patient, we are using a free account in Render with 0.5 CPUs 😢)

Dashboard

After the successful execution of the MAGFlow or nf-core/mag, you are ready to display the dashboard and start exploring your data. For this, you will need Conda, Mamba (recommended versions 23.3.1 and 1.3.1) or pip installed in your local system. You can install the components with:

 pip install bigmag

After you have installed the required components, you can just run:

 bigmag -p <N> 'path/to/the/final_df.tsv' 

The flag -p <N> is included to display the dashboard in a port of your preference. Otherwise, the default value is 8050. Once you run the command, the prompt output will indicate you the IP direction that you must type on your browser or copy and paste onto it, i.e., http://127.0.0.1:8050/

Layout

The layout is composed by 8 plots labeled to which tool or process they are related to. At the bottom of the dashboard, the raw data in a format table is displayed with the possibility for the user of highlighting cells, deleting rows and filtering the columns with keywords.

Practical tips

Even though BIgMAG is able to handle as many samples as you wish, for visualization purposes it is recommended to have maximum between 15 and 20 samples per run (we run out of colors). In addition, the names of the samples should be quite short (between 5 and 10 characters) for them no to occupy all of the space in each plot.

On the other hand, according to your screen and resolution the layout may be disorganized during the rendering process, you can adjust this by just reloading the page and zooming-in/out to readjust the plots. For example, on a 13-inch screen (MacBook Pro), zooming out to a value of 67% provides the best and aesthetic layout for BIgMAG using Chrome v124.0.6367.62 or Firefox v124.0.2.

Furthermore, you can download any plot from the dashboard by just clicking on the 📷 small icon in the upper right corner of each plot.

In the case of the CheckM2 and BUSCO plots, if you run MAGFlow including GTDB-Tk2, when you hover on the graph space you will see the taxonomical classification of each bin/MAG.

Store as HTML file

BIgMAG also accounts with the possibility to store it as an HTML to be displayed with any browser without the need to have any of the Python components installed. However, given that this is not a native feature of Dash, the callbacks cannot be used during the process of storing the dashboard. As a consequence, there is an additional script name app_lite.py that will displayed the same layout as app.py, altgough with an additional Save to html button below the heading section and without the components that trigger the callbacks. To use this script, you can run the following command:

 bigmag-lite output/final_df.tsv -o /path/to/store/the/html/file

As mentioned before, this dashboard lacks of the callbacks, and hence the values for some parameters can be controlled by different flags. These are available options to customize this layout:

  -p PORT, --port PORT "Port to run the app. (default: 8050)"
  --cl_checkm2 <N> "Genome completeness level for CheckM2 (default: 10)"
  --csco_busco <N> "Genome completeness of SCO for BUSCO (default: 10)"
  --param_gunc <String> "Parameter to show the data distribution for GUNC (default: clade_separation_score)"
  --param_quast <String> "Parameter to show the data distribution for QUAST (default: GC (%))"
  --samples_gtdbtk2 <N> "Number of samples to display on the GTDB-Tk2 plot (default: None)"
  --tax_level <String> "Taxonomic level to display information on GTDB-Tk2 plot (default: Phylum)"

Acknowledgments

Tool developed under the support of the Federal Commission for Scholarships for Foreign Students (FCS) through the program Swiss Government Excellence Scholarships.

Citation

If you find BIgMAG/MAGFlow useful, please cite our paper or share this tool through platforms such as X and LinkedIn:

Metagenome quality metrics and taxonomical annotation visualization through the integration of MAGFlow and BIgMAG.

Yepes-García J and Falquet L.

F1000Research 2024, 13:640. doi: 10.12688/f1000research.152290.1.

Metadata

Release files for bigmag 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bigmag 1.1.0
File Size Uploaded
bigmag-1.1.0.tar.gz 32.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bigmag 1.1.0
File Interpreter ABI Platform
bigmag-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 62.9 kB

Release files / bigmag-1.1.0.tar.gz

Download URL bigmag-1.1.0.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86d9a152e4944c39de3c01080b72706e4937648351b36ec68dccbb24428d7cdb
BLAKE2b-256 checksum
How to use checksums
8923b18144246607730c3449545497aef52d183af46134a0155129f2b236a607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.10

Release files / bigmag-1.1.0-py3-none-any.whl

Download URL bigmag-1.1.0-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f248494adcdfb2976b579acc1e3d3a61039a6672f20a40c22348bdb97f955cc2
BLAKE2b-256 checksum
How to use checksums
c4c4589f37b0335ced6ca01dd74e2d079600ef7b56c7f45a86574b89cbde8750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.10

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page