# Importing Data and Running Initial MetaPhlAn

**URL:** <https://forum.biobakery.org/t/importing-data-and-running-initial-metaphlan/4915>\
**Category:** MetaPhlAn\
**Created:** [March 3, 2023, 10:46pm UTC](https://forum.biobakery.org/t/importing-data-and-running-initial-metaphlan/4915 "2023-03-03T22:46:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagr4657](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nagr4657/32/2016_2.png) [@nagr4657](https://forum.biobakery.org/u/nagr4657)\
**Post date:** [March 3, 2023, 10:46pm UTC](https://forum.biobakery.org/t/importing-data-and-running-initial-metaphlan/4915/1 "2023-03-03T22:46:55Z")

</div>

Hello,

I just downloaded MetaPhlAn 3.0 and I am a new user. I work with a collaborator who shared data with us via Qiita. I am used to using qiime2 on windows subsytem linux (ubuntu). However I am not super familiar with the language used in your github tutorial - specifically the formatting for running metaphlan ([metaphlan3 · biobakery/biobakery Wiki · GitHub](https://github.com/biobakery/biobakery/wiki/metaphlan3#input-files)).

I am struggling to import all of my data into my created directory due to the nature of the data shared with me via my collaborator. I have raw fast.q files that are all GZ files, but because there are so many when I download them they are in a zipped file. So I a still importing those into my folder with wget and a link from my data but in the meantime I used “explorer.exe .” and pasted just one of the fastq.gz files into the folder to run a test.

I am running into this issue “UnboundLocalError: local variable ‘ls\_f’ referenced before assignment”.

Images of my code:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/2X/d/d8540a7858f8fdd45745784f2bf5d5a428ca6d86.jpeg)

Any feedback on this issue or the code I am running would be greatly appreciated.

Thank you,  
Nathan

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [March 6, 2023, 8:45am UTC](https://forum.biobakery.org/t/importing-data-and-running-initial-metaphlan/4915/2 "2023-03-06T08:45:50Z")

</div>

Hi @nagr4657  
Could you specify the exact metaphlan version you are running? You can check it with `metaphlan --version`

---

<div class="post-metadata">

**Author:** ![nagr4657](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nagr4657/32/2016_2.png) [@nagr4657](https://forum.biobakery.org/u/nagr4657)\
**Post date:** [March 6, 2023, 4:23pm UTC](https://forum.biobakery.org/t/importing-data-and-running-initial-metaphlan/4915/3 "2023-03-06T16:23:14Z")

</div>

I am using version 3.0.

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [March 13, 2023, 8:36am UTC](https://forum.biobakery.org/t/importing-data-and-running-initial-metaphlan/4915/4 "2023-03-13T08:36:39Z")

</div>

Hi @nagr4657  
I would try to update metaphlan 3.0 to the latest version available 3.0.14 that should solve this problem
