473,416 Members | 1,784 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,416 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 8467

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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.