473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Import SNP data into DendroPy for popgen analyses

I am trying to calculate population genetic statistics with DendroPy and need help reading my data. I had a SNP .vcf file from 8 individuals of the same specie and the same population. I converted this file into a Phylip file to be able to read it into DendroPy. Now, I tried to read the data first usingdendropy.DnaCharacterMatrix.get, but apparently I need two populations to be able to do the analysis. Reading the data with dendropy.DataSet.get did not work because I need a CharDataSequence to be able to calculate the statistics.

I am working with this two documentation pages: https://dendropy.org/primer/popgenstats.html https://dendropy.org/library/popgenstat.html#module-dendropy.calculate.popgenstat

I am new to Python so any help will be much appreciated!
Oct 4 '22 #1
0 8464

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: John Kolvereid | last post by:
How does one import data INTO a table. I am forced to read files (\i) w/ a ton of insert statements. I am trying to import approx 800 lines into the table. However, I must bundle them into a...
3
by: Schultz | last post by:
I would like to know if it is possible to import data from MS Excel 2000 to a dataset using asp.net. The excel file would need to be uploaded to the server from a web page first, before the loaded...
4
by: N/A | last post by:
Hi, Is it possible to import data from Excel for doing numerical analysis in Python? If so how? Thank u!
2
by: Purvi | last post by:
How to import data from excel sheet to ms sql table the data in the excel is the one which is exported from oracle, few data fields of the ms sql server are of int type and few are of varchar, how...
0
by: 2D Rick | last post by:
Using XP & Access2003 Import data from Microsoft Exchange I can manually get this import of the Global Address Book via "Get External Data" but need to know if this can be automated via VBA? ...
1
by: crs27 | last post by:
Hai All, I want to import data from Oracle 10g to POstgreSQl 8.2.Would like to know if their is any way to import data from pgAdmin III. Thought of using Copy command,but for this the...
0
by: nuray | last post by:
I have a spreadsheet where I run a query in Access and copy it into the specific spreadsheets. I was trying to use Data->import external data->import data tool in excel to get the data automaticly...
9
by: a | last post by:
Dear friends I want import data from CSV file to mdb file How can I do that in vb.net?
11
by: Laurel Eppstein | last post by:
I have no hair left with this issue! I'm simply trying to import data from named ranges in Excel 2003, into tables of the same name in Access 2003. I have found that unless I have the spreadsheet...
1
by: abdulladarwish | last post by:
I want to Copy a data from One oracle database to another. I have checked Import/Export Utility but the problem is import utility doesn't support conflicts resolution techniques between rows. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.