Skip to main content

argile logo

argile (formerly terracotta) is a Python package for estimating migration surfaces and the locations of genetic ancestors from gene trees. The latest release is available either here on GitHub or through PyPI. See example_dataset/ for details about file formats.

Estimate the most likely migration surface

import argile

result, loglikelihood = argile.run(
    demes_path="example_dataset/demes.tsv",
    connections_path="example_dataset/connections.tsv",
    samples_path="example_dataset/samples.tsv",
    trees_dir_path="example_dataset/trees",
    output_file="output.tsv"
)

argile.run() estimates the most likely migration surface using the L-BFGS-B algorithm. It estimates values for the coefficient (the default migration rate) and any migration rate modifier variables (here r0, r1, and r2). These variables will be automatically included in this search if present in connections.tsv. This function takes the paths to the files as input rather than loading the world map prior.

Loading the world map

import pandas as pd
import argile

demes = pd.read_csv("example_dataset/demes.tsv", sep="\t")
connections = pd.read_csv("example_dataset/connections.tsv", sep="\t")
samples = pd.read_csv("example_dataset/samples.tsv", sep="\t")
world_map = argile.WorldMap(demes, connections, samples)

Metadata

Release files for argile 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argile 0.0.4
File Size Uploaded Provenance Actions
argile-0.0.4.tar.gz 406.6 kB Without provenance Details for argile-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argile 0.0.4
File Interpreter ABI Platform Actions
argile-0.0.4-py3-none-any.whl Python 3 none any Details for argile-0.0.4-py3-none-any.whl

Total release size: 421.4 kB

Release files / argile-0.0.4.tar.gz

Download URL argile-0.0.4.tar.gz
Size 406.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ce7d633958b2aa96cb6f84df9d106c3dde2da9eae2b22e7d19515d826eddf48e
BLAKE2b-256 checksum
How to use checksums
bb8e71c93d5011354e24e8db27b525bdcb310e6e76ee929d11adf1684881de98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / argile-0.0.4-py3-none-any.whl

Download URL argile-0.0.4-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05c4f86bbdaa6c77c4f5393db82434855af963b45f49927cc3a3ebb2d697ab73
BLAKE2b-256 checksum
How to use checksums
04920955684af2d28bc5d69c1870bae385fb31da32f1fcd9e331ff6fa1b1259f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Security for argile 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page