# Internet connection?

**URL:** <https://forum.biobakery.org/t/internet-connection/269>\
**Category:** MetaPhlAn\
**Created:** [March 11, 2020, 5:19pm UTC](https://forum.biobakery.org/t/internet-connection/269 "2020-03-11T17:19:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![idapantoja](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/idapantoja/32/144_2.png) [@idapantoja](https://forum.biobakery.org/u/idapantoja)\
**Post date:** [March 11, 2020, 5:19pm UTC](https://forum.biobakery.org/t/internet-connection/269/1 "2020-03-11T17:19:48Z")

</div>

Hi all!

I have basic question about the use of Metaphlan2 in a standalone computer with no connection to internet. The software is installed in a Mac computer but can it worked without internet? Or internet connection is required to run all the analysis?

I would appreciate the feedback on this. Thank you!  
idapantoja

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [March 12, 2020, 5:07pm UTC](https://forum.biobakery.org/t/internet-connection/269/2 "2020-03-12T17:07:49Z")

</div>

Hi,  
the internet connection is required only for downloading the database. The analysis can be done offline.

---

<div class="post-metadata">

**Author:** ![idapantoja](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/idapantoja/32/144_2.png) [@idapantoja](https://forum.biobakery.org/u/idapantoja)\
**Post date:** [March 12, 2020, 5:25pm UTC](https://forum.biobakery.org/t/internet-connection/269/3 "2020-03-12T17:25:34Z")

</div>

Hi,

Perfect! Thanks so much for the answer!

---

<div class="post-metadata">

**Author:** ![DEEPCHANDA7](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@DEEPCHANDA7](https://forum.biobakery.org/u/DEEPCHANDA7)\
**Post date:** [March 25, 2020, 8:13pm UTC](https://forum.biobakery.org/t/internet-connection/269/4 "2020-03-25T20:13:01Z")

</div>

Hi Fransesco,  
I was trying to download clade marker database locally by the command:  
`$ metaphlan2.py --install`  
My network download speed is not less than at least 1.5MBps. But when I download this particular database, it becomes super slow (around 20kbps). Is it normal or I’m having some issues?

---

<div class="post-metadata">

**Author:** ![idapantoja](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/idapantoja/32/144_2.png) [@idapantoja](https://forum.biobakery.org/u/idapantoja)\
**Post date:** [July 16, 2020, 8:09pm UTC](https://forum.biobakery.org/t/internet-connection/269/5 "2020-07-16T20:09:23Z")

</div>

Hi! Hope you are doing well!

I am retaking this topic again. I was not able to work on this due to the pandemic.

So my issue is the following. I was trying the command: metaphlan2.py Natick-WGS-240\_R1.fastq --input\_type fasta \> Natick\_WGS\_240 (that is the name of the sample I am using as practice) and I was getting this message: metaphla2.py: command not found

I started looking on internet and I found that you could add python at the beginning like this:  
python metaphlan2.py Natick-WGS-240\_R1.fastq --input\_type fasta \> Natick\_WGS\_240

I got this after running that option:

Warning! Biom python library not detected!  
Exporting to biom format will not work !

Downloading MetaPhlan2 database  
Please note due to the size this might take a few minutes

Downloading [https://bitbucket.org/biobakery/metaphlan2/downloads/mpa\_v20\_m200.tar](https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.tar)

Warning: Unable to download [https://bitbucket.org/biobakery/metaphlan2/downloads/mpa\_v20\_m200.tar](https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.tar)

Downloading [https://bitbucket.org/biobakery/metaphlan2/downloads/mpa\_v20\_m200.md5](https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.md5)

Warning: Unable to download Downloading [https://bitbucket.org/biobakery/metaphlan2/downloads/mpa\_v20\_m200.md5](https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.md5)

File “/Users/ida.pantojafeliciano/Downloads/metaphlan2/metaphalan\_databases/mpa\_v20\_m200.md5” not found!  
File “/Users/ida.pantojafeliciano/Downloads/metaphlan2/metaphalan\_databases/mpa\_v20\_m200.tar” not found!  
MD5 checksums not found, something went wrong!

I got a folder called “metaphlan\_databases” but is empty. So this is the step that requires internet? I checked and I can’t find mpa\_v20\_m200.tar and mpa\_v20\_m200.md5 in any place in the computer.  
Its a good idea to use “python” at the beginning of the command?

Thank you!  
Ida

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [July 20, 2020, 8:38am UTC](https://forum.biobakery.org/t/internet-connection/269/6 "2020-07-20T08:38:41Z")

</div>

Yes, in order to install the database, an internet connection is required. But first, you should update your MetaPhlAn2 installation, if you have conda installed, you can run `conda install metaphlan2=2.7.8` since the local copy you have is an old build still pointing to the old repo.

Then, you should run `metaphlan2.py --install` for downloading and builiding the database.

---

<div class="post-metadata">

**Author:** ![idapantoja](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/idapantoja/32/144_2.png) [@idapantoja](https://forum.biobakery.org/u/idapantoja)\
**Post date:** [July 20, 2020, 6:48pm UTC](https://forum.biobakery.org/t/internet-connection/269/7 "2020-07-20T18:48:32Z")

</div>

Hi @fbeghini,

Thanks so much for your answer. I am guessing that for the conda install command I need the internet connection too, right?

Best regards!  
@idapantoja

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [July 22, 2020, 7:32am UTC](https://forum.biobakery.org/t/internet-connection/269/8 "2020-07-22T07:32:12Z")

</div>

Yes, unfortunately, yes.  
To avoid using conda, you can clone the repository from GitHub and manually download the database from [here](https://drive.google.com/drive/folders/1_HaY16mT7mZ_Z8JtesH8zCfG9ikWcLXG?usp=sharing)
