semvec/pypi-packages huggingface dataset:
peds 1.3.2
Package for parsing pedigree files
License: MIT


|Travis|

peds: basic pedigree parsing
----------------------------

All this does is parse pedigree_ files and group individuals within families.
Only performs minimal validation.

Install
-------

.. code:: bash

    pip install peds

Usage
-----

.. code:: python

    from peds import open_ped

    families = open_ped(PATH)

    family = families[0]

    # find affected family members
    affected = [ x for x in family is x.is_affected()]

    # find parents
    for person in family:
        father = family.get_father(person)
        mother = family.get_mother(person)

.. |Travis| image:: https://travis-ci.org/jeremymcrae/peds.svg?branch=master
    :target: https://travis-ci.org/jeremymcrae/peds
.. _pedigree: http://zzz.bwh.harvard.edu/plink/data.shtml#ped
multitrans 1.0.0
Translate multiple strings to multiple languages using Google Translate
License: MIT
Keywords: google translate multiple languages

# multitrans
Translate multiple strings to multiple languages wrapping the Google Translate service.

## Install
```
pip install multitrans
```

## Format
```python
from multitrans import translate

result = translate( strings, to_languages, from_language )
```

## Examples
```python
from multitrans import translate

# translate one string to one language
a = translate('en fin stol','en','sv')

# translate multiple strings to one language
b = translate(['en stol','tvÃ¥ soffor','tre fÃ¶nster'],['en'],'sv')

# translate multiple strings to multiple languages
c = translate(['stol','soffa','fÃ¶nster'],['en','da'],'sv')

print(a)
# {'en': ['a nice chair']}
print(b)
# {'en': ['a chair', 'two sofas', 'three windows']}
print(c)
# {'en': ['chair', 'couch', 'window'], 'da': ['stol', 'sofa', 'vindue']}
```

## Languages
Languages are represented by its two-char-code according to ISO 639-1\
A full list of all codes can be found here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

Some examples follow below:

```
locales = {
  'af': 'Afrikaans',
  'ar': 'Arabic',
  'az': 'Azerbaijani',
  'be': 'Belarusian',
  'bg': 'Bulgarian',
  'bn': 'Bengali',
  'bs': 'Bosnian',
  'ca': 'Catalan',
  'ceb': 'Cebuano',
  'cs': 'Czech',
  'cy': 'Welsh',
  'da': 'Danish',
  'de': 'German',
  'el': 'Greek',
  'en': 'English',
  'eo': 'Esperanto',
  'es': 'Spanish',
  'et': 'Estonian',
  'eu': 'Basque',
  'fa': 'Persian',
  'fi': 'Finnish',
  'fr': 'French',
  'ga': 'Irish',
  'gl': 'Galician',
  'gu': 'Gujarati',
  'ha': 'Hausa',
  'hi': 'Hindi',
  'hr': 'Croatian',
  'ht': 'Haitian Creole',
  'hu': 'Hungarian',
  'hy': 'Armenian',
  'id': 'Indonesian',
  'ig': 'Igbo',
  'is': 'Icelandic',
  'it': 'Italian',
  'iw': 'Hebrew',
  'ja': 'Japanese',
  'jw': 'Javanese',
  'ka': 'Georgian',
  'kk': 'Kazakh',
  'km': 'Khmer',
  'kn': 'Kannada',
  'ko': 'Korean',
  'la': 'Latin',
  'lo': 'Lao',
  'lt': 'Lithuanian',
  'lv': 'Latvian',
  'mg': 'Malagasy',
  'mi': 'Maori',
  'mk': 'Macedonian',
  'ml': 'Malayalam',
  'mn': 'Mongolian',
  'mr': 'Marathi',
  'ms': 'Malay',
  'mt': 'Maltese',
  'my': 'Myanmar (Burmese)',
  'ne': 'Nepali',
  'nl': 'Dutch',
  'no': 'Norwegian',
  'ny': 'Chichewa',
  'pa': 'Punjabi',
  'pl': 'Polish',
  'pt': 'Portuguese',
  'ro': 'Romanian',
  'ru': 'Russian',
  'si': 'Sinhala',
  'sk': 'Slovak',
  'sl': 'Slovenian',
  'so': 'Somali',
  'sq': 'Albanian',
  'sr': 'Serbian',
  'st': 'Sesotho',
  'su': 'Sundanese',
  'sv': 'Swedish',
  'sw': 'Swahili',
  'ta': 'Tamil',
  'te': 'Telugu',
  'tg': 'Tajik',
  'th': 'Thai',
  'tl': 'Filipino',
  'tr': 'Turkish',
  'uk': 'Ukrainian',
  'ur': 'Urdu',
  'uz': 'Uzbek',
  'vi': 'Vietnamese',
  'yi': 'Yiddish',
  'yo': 'Yoruba',
  'zh': 'Chinese',
  'zu': 'Zulu'
  }
```