Python code for extracting values from an Excel database?
0
0
Entering edit mode
5.6 years ago
d.awwad19 • 0

Hello..

I have a big database in an Excel format (around 50,000 records) of sequence accession codes and corresponding numerical values, and I need a piece of python code for extracting the highest 30 numerical values.. Can someone help me with that please? (I have very very beginner level at Python)..

Thanks in advance!

Python sequence • 936 views
ADD COMMENT
1
Entering edit mode

Look at pandas which is very good at working with excel sheets as a starting point:

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html

EDIT: Sorry I meant this to be a reply I don't know how to delete as answer :/

ADD REPLY
0
Entering edit mode

Thanks, I will definitely check it out..

ADD REPLY
0
Entering edit mode

If you have an excel file, why don't you just use the function of excel to sort columns?

ADD REPLY
0
Entering edit mode

Well, I wanted to write a code that would extract the accession codes corresponding to the highest values and download the sequences in FASTA format directly (by linking it to the Gencode database)..

ADD REPLY

Login before adding your answer.

Traffic: 1691 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6