<p>Usually errors like these occur when an input file doesn't exist or is corrupt. But you might also see these errors if you don't have permissions to access the file for whatever reason. Although unlikely, these can also occur if/when your system is out of memory.</p>
<p>Assuming the index is corrupt, I think just retry the command. For example:</p>
<pre><code>curl -O ftp://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/cdna/Homo_sapiens.GRCh38.cdna.all.fa.gz

kallisto index \
    -i Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx \
    Homo_sapiens.GRCh38.cdna.all.fa.gz
</code></pre>
<p>And test:</p>
<pre><code>kallisto quant \
    -i Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx \
    -o test \
    -t 8 \
    --single \
    -l 250 \
    -s 30 \
    SRR8668755_1M_subsample.fastq
</code></pre>
<hr />
<p>To get this working using Windows/Anaconda Powershell, I just downloaded the cDNA sequences from <a href="https://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/cdna/" rel="nofollow noreferrer">https://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/cdna/</a> and moved them to my working directory. I also downloaded and extracted the Windows Kallisto executable v0.46.1 from <a href="https://pachterlab.github.io/kallisto/download.html" rel="nofollow noreferrer">https://pachterlab.github.io/kallisto/download.html</a>. Then, with the FASTQ file in my working directory:</p>
<pre><code> .\kallisto_windows-v0.46.1\kallisto\kallisto.exe index `
    -i Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx `
    .\Homo_sapiens.GRCh38.cdna.all.fa.gz
</code></pre>
<p>And tested with:</p>
<pre><code>.\kallisto_windows-v0.46.1\kallisto\kallisto.exe quant `
    -i .\Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx `
    -o test `
    -t 8 `
    --single `
    -l 250 `
    -s 30 `
    .\SRR8668755_1M_subsample.fastq
</code></pre>

CC BY-SA 4.0
2022-12-15T15:20:29.313Z
2023-01-11T13:36:55.717Z
2023-01-11T13:36:55.717Z
Steve
<p>I am utilizing <code>Kallisto</code> in <code>Anaconda</code>/<code>miniconda</code> for RNA sequencing. I have successfully made an index; using said index to analyze RNA sequencing data has yielded an error of:</p>
<blockquote>
<p>&quot;Error: index input file could not be opened!&quot;</p>
</blockquote>
<p>The implication is that the code used does in fact work but raises the question as to why the index file could not be opened. I have tried searching this error to see if others may have faced the same error message, but unfortunately no luck. Any recommendations and or solutions would be greatly appreciated. The code and output can be found below.</p>
<pre><code>kallisto quant -i Homo_sapiens.GRCh38.cdna.all -o test -t 8 --single -l 250 -s 30 SRR8668755_1M_subsample.fastq
</code></pre>
<blockquote>
<p>[quant] fragment length distribution is truncated gaussian with mean = 250, sd = 30</p>
</blockquote>
<blockquote>
<p>Error: index input file could not be opened!</p>
</blockquote>

<rna-seq><read-mapping><kallisto><anaconda>
Kallisto error: index input file could not be opened!
# Kallisto error: index input file could not be opened!

(Asked by: username_0 on 2022-12-15)

I am utilizing Kallisto in Anaconda/miniconda for RNA sequencing. I have successfully made an index; using said index to analyze RNA sequencing data has yielded an error of:

"Error: index input file could not be opened!"

The implication is that the code used does in fact work but raises the question as to why the index file could not be opened. I have tried searching this error to see if others may have faced the same error message, but unfortunately no luck. Any recommendations and or solutions would be greatly appreciated. The code and output can be found below.
kallisto quant -i Homo_sapiens.GRCh38.cdna.all -o test -t 8 --single -l 250 -s 30 SRR8668755_1M_subsample.fastq


[quant] fragment length distribution is truncated gaussian with mean = 250, sd = 30


Error: index input file could not be opened!

**Tags:** rna-seq, read-mapping, kallisto, anaconda

---

## 1 answers

### Answer by username_1 on 2022-12-15. Score: 5 | Accepted answer

Usually errors like these occur when an input file doesn't exist or is corrupt. But you might also see these errors if you don't have permissions to access the file for whatever reason. Although unlikely, these can also occur if/when your system is out of memory.
Assuming the index is corrupt, I think just retry the command. For example:
curl -O ftp://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/cdna/Homo_sapiens.GRCh38.cdna.all.fa.gz

kallisto index \
    -i Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx \
    Homo_sapiens.GRCh38.cdna.all.fa.gz

And test:
kallisto quant \
    -i Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx \
    -o test \
    -t 8 \
    --single \
    -l 250 \
    -s 30 \
    SRR8668755_1M_subsample.fastq


To get this working using Windows/Anaconda Powershell, I just downloaded the cDNA sequences from https://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/cdna/ and moved them to my working directory. I also downloaded and extracted the Windows Kallisto executable v0.46.1 from https://pachterlab.github.io/kallisto/download.html. Then, with the FASTQ file in my working directory:
 .\kallisto_windows-v0.46.1\kallisto\kallisto.exe index `
    -i Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx `
    .\Homo_sapiens.GRCh38.cdna.all.fa.gz

And tested with:
.\kallisto_windows-v0.46.1\kallisto\kallisto.exe quant `
    -i .\Homo_sapiens.GRCh38.cdna.all.release-108_k31.idx `
    -o test `
    -t 8 `
    --single `
    -l 250 `
    -s 30 `
    .\SRR8668755_1M_subsample.fastq


---

