sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
5d51d1602212b0784b411049aa6727bda5401165efc84a3092112099f33225a8
Python
70
3
from .default_runner import DefaultRunner __all__ = ["DefaultRunner"]
d0c82fb9f3f2d9c1503f34646f8a14e252a2a497878122eb21058cd73f7a6ebe
Python
70
1
__all__ = ["graph-network", "transformer", "equivariant-transformer"]
3cea0c454e2eab3bc6731db6d4e29898f05da05a4c9d1f4a1858ac6da79d118f
Python
71
2
from .admUI import computeQUI from .admUI_numpy import computeQUI_numpy
0f46acc8cd91b84a8c36e8aa025b66141efb52ec93419d02c52d9b8a8f00e082
Python
73
3
from . import self_supervised, xgb __all__ = ['self_supervised', 'xgb']
425efae12e29878d3a716b29adab74ad8b4cae0ec1ab4e91576cd0b33d48961e
Python
73
1
from .skew_correction import skew_correct_matlab_one, skew_correct_matlab
4c7203df2c6a4663559720596c0ca7ccf23af681e8a038c1db5f0775ba721fd8
Python
73
2
"""Statistical analysis tools for the Fiber Photometry Analysis GUI."""
d1e4ecf77b6eba309e12cb635d0ab9fdb4b1db95bb30f8c2b5ba7eba9058b312
Python
75
3
from .scorenet import DistanceScoreMatch __all__ = ["DistanceScoreMatch"]
b64178171bafc4d2f6c0cd00dbcc6f022ab480c17b4498c8a48bbea684389d9b
Python
76
4
from . import datasets from . import utils __all__ = ['datasets', 'utils']
ee2acc90ea71621c549219a3fa0fb7dfe9c118e027ec3f9fb504d66a1e5ab3f3
Python
76
2
from .audio_mel_dataset import * # NOQA from .scp_dataset import * # NOQA
6386a09bb4d2ebe278d8db8350120d26be07735448e1384dd302edaba65712c8
Python
77
2
import subprocess subprocess.call("python Codes/Run_program.py", shell=True)
b10a3bee5f87f82b8bb03da365032370a0bec68ea94270134a0234b344029545
Python
78
3
__all__ = ['MqttCommManager'] from .mqtt_comm_manager import MqttCommManager
ffd699ecfefb114c733172360fdc9acbe6526c8ea2c936eb39a5053b18d6eea4
Python
78
2
from .conditions import ConditionsExtractor from .labels import LabelExtractor
ead76873b25c37e23a5cc99b0fd8586e0c745709fc12d9f3f4e25b56ebd12ce0
Python
81
7
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """
4ae7b1bac412ded83a360ea27bf875954a06bfc7d405f004cf674539e46224b5
Python
83
5
filter_cfg = dict( type='GaussianFilter', window_size=11, sigma=4.0, )
6caf0f101340b7ef597493124ecd6ccadbc400ca348e6c3b9b190c590a27a379
Python
83
5
filter_cfg = dict( type='OneEuroFilter', min_cutoff=0.004, beta=0.7, )
ea84fe14e0831eb7ed16a5ffcd3c27bc0faf551ac91fad4bc4e4f0b6282b8917
Python
83
6
from enum import Enum class RunType(Enum): Executed = 1 Imagined = 2
121e9606657049387fe27fac6b4a1b30fc9fe3cca7c3b7e33aa127d798284c8d
Python
84
3
from .trainer import * from .trainer_seg import * from .trainer_nuclei_seg import *
266c03de5b7655d774e6c6a723f1056b7dca3bed864d80181b044f5c24396cf9
Python
84
4
import os __version__ = '0.0.1b' ROOT = os.path.abspath(os.path.dirname(__file__))
f33a3557c6e353905e96cfa3253ebba98c0dc7ba854f658636bf375429b422fd
Python
85
4
from p4.mrp import mrp read('inTrees.phy') a = mrp(var.trees) a.writeNexus('mr.nex')
7867a8220b7c23b9f885f8cb036cce08ff70b99b20da07578c7f82331d421063
Python
86
4
read('protein.nex') a=var.alignments[0] a.recodeDayhoff() a.writeNexus('recoded.nex')
ddeed61fda0dda6c4d423d9815e7b28d8c0857f2ee1b45b0b29926f081672814
Python
86
3
tA = func.readAndPop('m.nex') tB = func.readAndPop('dt.nex') tA.tvTopologyCompare(tB)
a104811aef66516e43118bedbb6102f62d7828da6dc3095293d81c10569d7955
Python
89
4
cpr = STMcmcCheckPointReader() cpr.writeProposalAcceptances() cpr.compareSplits(-2, -1)
a1cab582dd7f2b3d378789d5af2c90f580a91159cb605fb7654626aca8052979
Python
89
5
filter_cfg = dict( type='SavizkyGolayFilter', window_size=11, polyorder=2, )
719a5cd65c52a747a17c9654181884161eb4a494d4d0ed78360cf973623f8b90
Python
95
5
from django.apps import AppConfig class HomeConfig(AppConfig): name = 'exsclaim.ui.home'
2a5f743024ad07d32b5bb621bdd17e975674ded5f965a34a9d43e3ad081af758
Python
96
8
t = func.randomTree(nTax=20) t.eps() t.write() t.draw() #os.system('sleep 1; rm random.eps')
2ad22cd0eb3c0d5618da65f360d64e2a1ea397c3d2eebd0384b3317df020c9af
Python
96
3
taxNames = list(string.ascii_uppercase[:4]) t = func.randomTree(taxNames) t.writeNexus('t.nex')
3c1e5f32f10a8f70d412e7b01b17ff0b79419b6253db81d07834995afe858422
Python
96
5
from django.apps import AppConfig class QueryConfig(AppConfig): name = 'exsclaim.ui.query'
97b0925c89de073935075a1e21807917dc2ac23bb1b81c18b824a9914523c8e2
Python
96
3
taxNames = list(string.ascii_uppercase[:5]) t = func.randomTree(taxNames) t.writeNexus('t.nex')
9f6f7c9c030c3b7b7b12eaef233bf01b278034b7c9ac5e5452d58a094760d743
Python
96
3
taxNames = list(string.ascii_uppercase[:7]) t = func.randomTree(taxNames) t.writeNexus('t.nex')
8308c189e7884d6d18013a327609aede43ba0c80adaf2bc8be96380d54adb33d
Python
100
6
read('sim.p4_tPickle') t = var.trees[0] read('d.nex') t.data = Data() t.optLogLike() t.model.dump()
8f10dc5ec223a841402ba4deca3cbbd2bb372cedc75edd4b60307b579d6968ca
Python
100
5
try: from django.test import TestCase except Exception as e: pass # Create your tests here.
4f6263270a9418a5609f85a69213a70e51834376997134dd00ed3ed44adc9e08
Python
101
5
import torch.nn.functional as f def mse(input, target, misc): return f.mse_loss(input, target)
5453092dee59824cc0defc05c250cfd109ad46b07f22ddef3dbbc93375fcb009
Python
101
6
try: from django.test import TestCase except Exception as e: pass # Create your tests here.
95831104a518aa3a656393635a56d937044803c25acd0e91920d4201482f6402
Python
101
5
from django.apps import AppConfig class ResultsConfig(AppConfig): name = 'exsclaim.ui.results'
96f6eaa760ba7163153bb91ee06def8493580f10e709f365f776fe9324452309
Python
101
2
from .Environment import * from .Agent import Agent, trajectory_generator, batch_trajectory_generator
cb93244a9e0d0c5b15bbc474e7054a8184fdc77057358999916954030f8b57df
Python
101
4
import logging from logging import NullHandler logging.getLogger(__name__).addHandler(NullHandler())
8074ceb7cf00f9ecd76c9b63b6987d574c47680f07d269d61c93a20ed1977bdc
Python
102
4
import logging from logging import NullHandler logging.getLogger(__name__).addHandler(NullHandler())
0e3e5b839cc6266a7be6742e057df2004e7054f0a3916c5b17f109cd718954af
Python
105
2
from .registration import register_with_ANTs, register_with_ANTs_batch from .utils import load_with_ants
27d9ff1d6724c0a3881ab7a3cf7793d258b84ec01a156f2c1c218c13bff56eea
Python
106
4
# Copyright (c) OpenMMLab. All rights reserved. from .dropblock import DropBlock __all__ = ['DropBlock']
9dab185bf0fbaa1e2cd3c112ad21ec59dd47487ed133da3dccc161b85e2891a2
Python
106
7
cpr = McmcCheckPointReader(theGlob='*', last=True) m = cpr.mm[0] n = Numbers(m.simTemp_tNums) n.plot()
f097938dc3040dda0ab901f1e7397976081279ad44ae1a08168667f72d9597b8
Python
106
4
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.utils import Registry NODES = Registry('node')
20dd5a6e90346a9a2df6e99acb7f439af4a48d8a559e4dfcdd8c411a47a8410f
Python
108
4
# Copyright (c) OpenMMLab. All rights reserved. from .utils import ort_validate __all__ = ['ort_validate']
7118666bf2e08a3163b2772949f9a594be3c26e81da4c193eca47bcc2b220c87
Python
108
2
DEFAULT_AA_GAP_CHARS = ["-", "?", "*", "X", "x"] DEFAULT_NT_GAP_CHARS = ["-", "?", "*", "X", "x", "N", "n"]
08364342463409580da1f56ede35767a66c8cb683297e67c95dee2b67341f577
Python
113
5
"""Reporting helpers for BrainStat results.""" from ._slm import make_slm_report __all__ = ["make_slm_report"]
2cfc5a46d38f955c47ae244daafc185fb5cf172f0bb7f9b6f4eaab2b68a78e59
Python
113
6
read("mcmc_trees_0.nex") tt = Trees() var.trees = [] read('cons.nex') t = var.trees[0] tt.trackSplitsFromTree(t)
8f22e0d739866524513acdd02ed43ddd4bae5ded181f0571af5c451ff61f1706
Python
113
8
# -*- coding: utf-8 -*- """ Created on Tue Jun 8 13:33:44 2021 @author: fhu14 """ from .mio_0_1 import ParDict
90499cffc81482b4c7f31eab43376a655b5ceae59e7cec4135807e8e241d1dcc
Python
113
4
tp = TreePartitions('tt.nex') tp.writeSplits() # If you like this sort of thing ... t = tp.consensus() t.draw()
214599ba749a66bf9ce8a99263f1d36f482c4064902772d50e65b1432d56eeae
Python
115
8
# -*- coding: utf-8 -*- """ Created on Tue Jun 8 13:31:08 2021 @author: fhu14 """ from .auorg_1_1 import ParDict
8917651e8cbc3958c11bef48d1d63d41a15daeba446f157c625d67ebb204d356
Python
115
8
# -*- coding: utf-8 -*- """ Created on Mon Jun 7 17:31:08 2021 @author: fhu14 """ from .elements import ELEMENTS
ccf245137aeb4c027727d8310176b23d34f7a4cebf7fbecde4ff03ebd5fdd681
Python
115
6
from django.urls import path from .views import home_view urlpatterns = [ path('', home_view, name="index"), ]
45aedc07593df9f1aa753543403bb47d0d5023c846b5a871da564bbb643b954d
Python
116
1
"""The code in this module comes from https://github.com/chemprop/chemprop/ and was refactored to suit our needs."""
5deb2233fa1a5e2a5f0bb40293eed4fbfd6eb7269b1e60621d7b6a17e8db35b5
Python
118
7
''' Author: ---- Date: 2022-04-29 11:15:51 LastEditors: ---a LastEditTime: 2022-09-05 14:45:34 ''' from .loss import *
ada63fc588d4046c93a6c7936d3e67148df87a3bfc482013bd8d3e4b67492b4f
Python
120
5
read('njTree.nex') t = var.trees[0] t.restoreDupeTaxa() t.draw(addToBrLen=0.0) t.writeNexus(fName='restoredNJTree.nex')
652e5f8333826c7739c8e9e101c0d722353cee74e152d4af60a7136eb7698beb
Python
122
4
# Copyright (c) OpenMMLab. All rights reserved. from .webcam_executor import WebcamExecutor __all__ = ['WebcamExecutor']
e49a147f82a0ffa34fd59209349dd57d0f7ea06b0f9ea4c12b2a4000858ff475
Python
122
6
from django.urls import path from .views import query_view urlpatterns = [ path('', query_view, name="query_page"), ]
4ffcc281c9713abeddc1eb31c1ad0a1b87fa4fcc2575c927d9d158d9c80543ff
Python
124
4
# Copyright (c) OpenMMLab. All rights reserved. from .utils import _dummy_bbox_sampling __all__ = ['_dummy_bbox_sampling']
e930b571c215e90296cda48ee7f1e76f01cfd9b3240aabdf3741ef43f4201a0c
Python
124
6
"""clipkit.__main__: executed when clipkit is called as script""" import sys from .clipkit import main main(sys.argv[1:])
b42f9f6a6a6c34bde0a7d55df9a4799716828e7b7310b09a00f6952456343133
Python
125
3
import os os.system('python check_train_hamilton.py --ckpt ../../ckpts/elastic_pend \ --dt 0.1')
f61921accc687bdd090a7f3addf5eb99b7127d32880c8b29eaf83b74f73614e3
Python
125
2
from .vector_quantizer import vector_quantize # NOQA from .vector_quantizer import vector_quantize_straight_through # NOQA
15152056e2bf8fad9b613cc0664ee643fc17b3fe7d51b679ac3d6f8c10379740
Python
128
7
from osgeo import gdal from osgeo import ogr from osgeo import osr gdal.UseExceptions() ogr.UseExceptions() osr.UseExceptions()
92100f6d66e37f87693d7f55690fb2e92c2bff1f0b315f9c08bd7e3e4636aacd
Python
128
4
# Copyright (c) OpenMMLab. All rights reserved. from .nvgesture_dataset import NVGestureDataset __all__ = ['NVGestureDataset']
fbc6d81a5b0e2ce6dca0cf2c1890128424b4849c1dd7f9158c53a275bd38ad66
Python
128
2
from .driver import compute_gammas, train_repulsive_model, repulsive_model_predict from .skf import SKF, SKFSet, SKFBlockCreator
b51974926bbb04e208d4c070d683c5ecd9d2e841ab6fa8f4ecbb554f55737805
Python
129
8
read('noOpt.p4_tPickle') t = var.trees[0] read('d.nex') t.data = Data() t.optLogLike(verbose=1) t.model.dump() t.tPickle('opt')
31c57dc2e3fdf8bc30bc34089a08fc310b140ddc4e0df420d2a45a3522bf86ff
Python
131
5
n = Numbers('mcmc_likes_0', col=1) n.plot() if os.path.isfile('mcmc_prams_0'): n = Numbers('mcmc_prams_0', col=1) n.plot()
3ca03c67d207e0c14bdde68847e0454d9466adf1aec3e620467df4ce2ba5a29e
Python
131
5
# Copyright (C) 2022-2025 ETH Zurich, Niels Maeder and other DASH contributors. from .trainer import Trainer __all__ = [Trainer]
b47c83a2c33a3dcd368ba58c3e1ce31669ede68b6320ae1e8c2af81114a0c71e
Python
131
8
# -*- coding: utf-8 -*- """ Created on Wed Jun 9 18:02:38 2021 @author: fhu14 """ from .precompute_stage import precompute_stage
a5c0ae7522438599cbcb70a320981bd2dd5f6e7e383f1396d2554b3cc57cd577
Python
136
6
read("d3_noDupes.phy") a = var.alignments[0] dm = a.pDistances() t = dm.njUsingPaup() t.draw(addToBrLen=0.0) t.writeNexus('njTree.nex')
e9b31d3701d1887a9f2a1503968c15b9ed803026b147aed09240a4a10447073e
Python
136
3
from .poisson_glm import poisson_glm, poisson_glm_constrained, two_param_poisson_glm from .rule_simulator import * from .utils import *
775f4607ad7ccf8915953a91fb6212785071938d1329130c90ae898764a7a199
Python
138
3
from pydapsys.file import File, read_file from pydapsys.page import DataPage, PageType, TextPage, WaveformPage from pydapsys.toc import *
d8452a143e2c81805057bdc954cb885395f19103224a26f3da674b6bc22d75e8
Python
139
6
read('d3.nex') a = var.alignments[0] a.checkForDuplicateSequences(removeDupes=True, makeDict=True) a.writePhylip(fName='d3_noDupes.phy')
159296d37800a5ce471c4f4198fbbd1eb3e3d596d4431bb4726df4445469a9d5
Python
141
13
read(""" 2 2 one ac two gt """) read('(one,two);') t = var.trees[0] t.data = Data() t.newComp() t.newRMatrix() t.setPInvar() t.calcLogLike()
3245b7aa3f1fa7374700af670cd26f33a20d93aaeaaaf2bb0a40423aaeac5e83
Python
143
4
read('../noTRuberNoGapsNoAmbiguities.nex') a=var.alignments[0] dm = a.compositionEuclideanDistanceMatrix() dm.writeNexus('compDistMatrix.nex')
332c0302a49c04b1a9954c52c1fab9f39ec20aa5312e7bd3b071c0beff1e6f12
Python
143
8
# -*- coding: utf-8 -*- """ Created on Tue Jun 8 12:32:31 2021 @author: fhu14 """ from .geometry import Geometry, to_cart, random_triatomics
6a53c8686bac82a01559913f913e4e7d42bca27affe549544cd58ad15eae2423
Python
143
6
############### Configuration file for Frequentist ############### n_epochs = 200 lr = 0.001 num_workers = 4 valid_size = 0.2 batch_size = 256
c61fdc263d50203199464c93909945807b9a9d4893bad49eaa2e2fe2c2b0be59
Python
143
5
from django.shortcuts import render def home_view(request): template_name = "exsclaim/home.html" return render(request, template_name)
60c8c389356522a42469cc628d32421157ce8c12c789bd123cfb23ec8c2bc8f9
Python
144
9
rNum = 0 sk = 100 n = Numbers('mcmc_likes_%i' % rNum, col=1, skip=sk) n.plot() n = Numbers('mcmc_hypers_%i' % rNum, col=2, skip=sk) n.plot()
254b706c685436abfcd2dade9898044f17bde66a2e976dfb3b5da1690fce7b42
Python
145
5
from torch.nn import functional as F def nll_loss(output, target, reduction='mean'): return F.nll_loss(output, target, reduction=reduction)
e8439c3f9e55db33ead99e2b5da84005775092a5483f9844de79bf546c0e4aa8
Python
145
6
from .geometry import * # from .reaction import * from .base import * from .exceptions import * # from .output import * # from .segments import *
44dd98433c30a3e2cc916658121d1d6d15f0193a2cb94cd115db30e99475919e
Python
147
6
import torch.nn.functional as f def l1(input, target, misc): # print(f"{input.size()}, {target.size()}") return f.l1_loss(input, target)
7c6c1fa9e217a351f160615657f3c499a8d6fb5ff3137ead3928cf1005a89c8f
Python
148
5
from torch.nn import functional as F def bce_loss_with_logits(output, target, misc): return F.binary_cross_entropy_with_logits(output, target)
7f9bdde6a12fb76730239ece9108d1d7a945ae112262f428c20eb90bf130fd0f
Python
148
7
read("mcmc_trees_0.nex") tt = Trees() # Use a previously-made cons tree var.trees = [] read("cons.nex") t = var.trees[0] tt.trackSplitsFromTree(t)
4bc5226f70f5d500690677779b80c2307048efff034f3d77b59ecb7a9001f46d
Python
149
8
var.doCheckForBlankSequences=False read('noOpt.p4_tPickle') t = var.trees[0] read('d.nex') t.data = Data() t.optLogLike(verbose=1) t.tPickle('opt')
cf78ebd34711af95d3ff9cb11acb8e9472279cd3f6f0a442188c3c288caeb689
Python
149
11
read('d.nex') d = Data() for i in range(3): read('t%i.p4_tPickle' % (i + 1)) tt = Trees() tt.data = d if 1: tt.consel() else: tt.rell()
09d029d23a23813904507a5ceff75e0f14b560ffe8c1dbf707bf62072d1bb64f
Python
150
6
from django.urls import path from .views import SearchResultViews urlpatterns = [ path('', SearchResultViews.as_view(), name="search_results"), ]
e571c1602a21e7f950552239708be1939363cf8abb69b5ec99282f01af298f91
Python
150
1
from .transformation import build_4D_tiff, save_4d_tiff, create_planes_tiff, get_unpad_planes, load_unpad_save, calc_stacks_average, get_ordered_tiffs
5863b0eb29cfc84e097a91df585ec7628e385cc8ae37385642558250726e9b40
Python
153
7
from abc import ABC, abstractmethod class Observer(ABC): @abstractmethod def receive_message(self, msg_type, msg_params) -> None: pass
fa85fc9dcc961954aa072e58248f170205a7faff7711df9057aed16bb0d3fea9
Python
154
5
from .common import MultiLayerPerceptron from .gin import GraphIsomorphismNetwork __all__ = ["MultiLayerPerceptron", "GraphIsomorphismNetwork" ]
cffc58b20a3bada5e9580332b8959a88648b88bd2cb3a718134b33785c82a597
Python
155
9
read("../d.nex") d = Data() m = func.unPickleMcmc(0, d) m.run(2000) m = func.unPickleMcmc(1, d) m.run(2000) #n = Numbers('mcmc_likes_0', col=1) #n.plot()
8a658ae661dda5c562ba23fa5c5df49ebe0e1f75122564c6e360fe2d1899bde6
Python
156
5
from torchmdnet.priors.atomref import Atomref from torchmdnet.priors.d2 import D2 from torchmdnet.priors.zbl import ZBL __all__ = ["Atomref", "D2", "ZBL"]
9abc1d005c99a99a55cf9a59b97aa3442c8974ccd522fb1d8fedeea29ebfd6dc
Python
157
5
from oligo_designer_toolsuite.config.pipelines.oligo_seq_probe_designer import OligoSeqProbeDesignerConfig __all__ = [ "OligoSeqProbeDesignerConfig", ]
c93e47116c67ca6f480595bf58a5ba6d61307f1fc6b1460ebc561a4bd70d64d1
Python
158
10
class ClipKITException(Exception): pass class InvalidInputFileFormat(ClipKITException): pass class StopCodonValidationError(ValueError): pass
1b9916980ed1089aba7bd264d79eaccc377765b6fd8dd1842bdd49814157717e
Python
163
5
from .ABCEnvironment import ABCEnvironment from .Rectangle import Rectangle from .OpenField import OpenField from .methods import intersect, projection_rejection
d18fd0ee65683f777c87b69259eeb1a90d554a26ba052fa40f4818fdac262e78
Python
165
2
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed # under the Apache License Version 2.0, see <https://www.apache.org/licenses/>
1c6696da2649246c8265754a9f878648831effd25d63f296b75e7f2331ed9427
Python
166
4
from .accumulators import GradientAccumulateOptimizer from .accumulators import GradientAccumulateModel from .layers import AccumBatchNormalization from .agc import *
058dfaf17a218737b57ba81b820725cff6220f139098a0df44fda2d18b5b9a31
Python
167
9
read('noOpt.p4_tPickle') t = var.trees[0] var.doCheckForBlankSequences = False read('dA.nex') read('dB.nex') t.data = Data() t.optLogLike(verbose=1) t.tPickle('opt')
a0b5a230bdbe72854cc472bee8d5265ebc79882fde321ee7267ba308616be1d1
Python
167
5
# Copyright (c) OpenMMLab. All rights reserved. from .collect_env import collect_env from .logger import get_root_logger __all__ = ['get_root_logger', 'collect_env']
a55a6610733928f3818adaccfe07c1ba6ec087430dd33f0dbeb482ac32f3a5d3
Python
168
7
from torch.nn.functional import mse_loss, l1_loss, huber_loss loss_class_mapping = { "mse_loss": mse_loss, "l1_loss": l1_loss, "huber_loss": huber_loss, }
6020e257d1dedf5b437af95d6aba369d9d437cb87b66195fa8f9c0eb38a56472
Python
169
3
appname = 'Multimodal Analysis of Neuronal Gene Expression, Electrophysiology and Morphology (MANGEM)' cell_limit = 1000 # limit to 1000 cells for performance reasons
f0d407fcca08a5459a002df1c2817f766c034fd703938fcea9b887a900aec00f
Python
169
5
# Copyright (c) OpenMMLab. All rights reserved. from .general_data import GeneralData from .instance_data import InstanceData __all__ = ['GeneralData', 'InstanceData']
3d78c4e0ca8b6814ed8850b63a3862cd0ed3b4a418153acffd2f4e93d7988271
Python
170
7
read('d.nex') a=var.alignments[0] a.writePhylip() m = func.maskFromNexusCharacterList("1 3-5 7 11", a.length, invert=0) print(m) b = a.subsetUsingMask(m) b.writePhylip()