# Pear installation package error

**URL:** <https://forum.qiime2.org/t/pear-installation-package-error/3979>\
**Category:** Other Bioinformatics Tools\
**Created:** [April 30, 2018, 5:05pm UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979 "2018-04-30T17:05:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahsa](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@Mahsa](https://forum.qiime2.org/u/Mahsa)\
**Post date:** [April 30, 2018, 5:05pm UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/1 "2018-04-30T17:05:37Z")

</div>

Hello,

I am new to the Qiime and bioinformatic pipelines. I am just wondering if anyone has any experience about pear installation. I tried to install pear through the Terminal but it keep saying that: Unable to locate package pear! I tried to remove and install the whole pear file again from the website but still the same error!!

Thank you for your help in advance.

Have a good one.

---

<div class="post-metadata">

**Author:** ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)\
**Post date:** [April 30, 2018, 5:09pm UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/2 "2018-04-30T17:09:53Z")

</div>

Bioconda has a lot of bioinformatics tools and is easy to use for installation, you might try checking there for PEAR: [https://bioconda.github.io/](https://bioconda.github.io/)

---

<div class="post-metadata">

**Author:** ![Mahsa](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@Mahsa](https://forum.qiime2.org/u/Mahsa)\
**Post date:** [May 1, 2018, 3:40pm UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/3 "2018-05-01T15:40:11Z")

</div>

Thank you for your great suggestion ✌

---

<div class="post-metadata">

**Author:** ![Mahsa](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@Mahsa](https://forum.qiime2.org/u/Mahsa)\
**Post date:** [May 2, 2018, 12:09pm UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/4 "2018-05-02T12:09:20Z")

</div>

Hello again.

I am running pear to merge my sequences which are 288 sequences that each has F and R. So I have tons of sequences that want to merge. And I am using scripts below to merge them;  
pear –f \*\_R1\_001.fastq.gz –r \*\_R2\_001.fastq.gz –o merged.fastq

And I am trying for one individual first to see how it goes.  
But it gives me an error; [ERROR] - cannot open file \_R1\_001.fastq.gz and also for R2 as well!

I tried to unzip it first but it didn't work as well! Though pear supposably should read it!?

Thanks again for the help.

---

<div class="post-metadata">

**Author:** ![Micro\_Biologist](https://forum.qiime2.org/user_avatar/forum.qiime2.org/micro_biologist/32/4190_2.png) [@Micro\_Biologist](https://forum.qiime2.org/u/Micro_Biologist)\
**Post date:** [May 4, 2018, 8:53am UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/5 "2018-05-04T08:53:13Z")

</div>

PEAR isn't magic, you need to add the sample names in! 😀

Something like this should work:

```
for f in *_R1_001.fastq.gz ; do

r=$(sed -e "s/R1/R2/" <<< "$f")
s=$(sed -e "s/_R1_001.fastq.gz/""/" <<< "$f")

echo
echo ====================================
echo Processing sample $s
echo ====================================

pear \
    -f $f \
    -r $r \
    -o $s.merged.fastq.gz
done

```

Hopefully this works?

---

<div class="post-metadata">

**Author:** ![Mahsa](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@Mahsa](https://forum.qiime2.org/u/Mahsa)\
**Post date:** [May 6, 2018, 6:06pm UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/6 "2018-05-06T18:06:40Z")

</div>

Hello,

Thank you for your reply. But that is not the case here. Bc I even insert the name of the sample, just one of them.It still gives me the same error that file cannot be opened!

Although the usage of sed command is not clear for me! I ran it and didn't work.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Micro\_Biologist](https://forum.qiime2.org/user_avatar/forum.qiime2.org/micro_biologist/32/4190_2.png) [@Micro\_Biologist](https://forum.qiime2.org/u/Micro_Biologist)\
**Post date:** [May 8, 2018, 7:07am UTC](https://forum.qiime2.org/t/pear-installation-package-error/3979/7 "2018-05-08T07:07:52Z")

</div>

Any chance you can post an example of your samples? eg 1 forward 1 reverse just a few sequences from each?
