DEV Community

Cover image for Download Fasta files in Bash using Nano text editor in 4 simple steps
Obioma Chukueggu
Obioma Chukueggu

Posted on

Download Fasta files in Bash using Nano text editor in 4 simple steps

Using the Nano text editor to download genetic sequences can be a bit daunting. Which is why I have taken the liberty to guide you in 4 simple steps. Letโ€™s jump right into it!

Step 1: Search for the nucleotide

Start by searching for the nucleotide on the NCIB nucleotide website.

For the sake of illustration, we will use the MTOR nucleotide. Once the nucleotide is found, click the Fasta option and copy the nucleotide sequence using CTRL C.

Image description

Step 2: Open Nano on your coding workspace

This command works regardless of any workspace being used such as Google shell cloud or Git bash.

On your terminal, type {Nano} and press enter.

Step 3: Save the Nano file

Paste the copied sequence from step 1 into the Nano editor, and use CTRL X to exit and save. Remember to name your file.

Image description

Step 4: Print your sequence

Use the {ls} command to list the contents of the folder and ensure that your nano file is saved.
Use the {Cat} command to print the contents of the file on your terminal by typing {cat filename}.

Image description

And just like that, you have successfully downloaded your file.
Let me know in the comments if you found this helpful.

Top comments (2)

Collapse
 
kpeale profile image
Kpeale Legbara

Well done. This is so good ๐Ÿ˜Š

Collapse
 
kvngxel profile image
Kvngxel

This is awesome ๐Ÿ˜Ž๐Ÿ‘๐Ÿฝ. Was really helpful and easy to understand