Skip to content

Instantly share code, notes, and snippets.

with subprocess.Popen(
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True,
text=True
) as p:
p.wait()
if p.returncode != 0:
@max-l
max-l / generator.py
Last active February 12, 2021 12:14
def group_snp():
for gene, grp in itt.groupby(gene_snps_grp, key=lambda x: x['gene']):
if gene in gene_lenghts:
yield gene, len(list(grp)) * 1000 / gene_lenghts[gene]
# possibilité 1: création de dictinnaire à partir d'un générateur de tuple2
gene_snp_rate = dict(group_snp())

Keybase proof

I hereby claim:

  • I am max-l on github.
  • I am maxxou (https://keybase.io/maxxou) on keybase.
  • I have a public key ASAYH2EmCIrKnllCDZ9VLy38xpGw9GMZL4OYUY88KvduGgo

To claim this, I am signing this object:

@max-l
max-l / .block
Last active December 15, 2018 01:57
Enter+Update merge
license: mit
@max-l
max-l / .block
Last active December 15, 2018 01:06
fresh block
license: mit
@max-l
max-l / .block
Last active December 13, 2018 01:06
select and grouping
license: mit
@max-l
max-l / .block
Last active December 11, 2018 17:06
sink3
license: mit
@max-l
max-l / .block
Last active December 11, 2018 03:42
sink3
license: mit
@max-l
max-l / .block
Last active December 11, 2018 13:23
sink2
license: mit
@max-l
max-l / .block
Last active December 10, 2018 18:10
sink1
license: mit