11 research outputs found

    greylock\textit{greylock}: A Python Package for Measuring The Composition of Complex Datasets

    Full text link
    Machine-learning datasets are typically characterized by measuring their size and class balance. However, there exists a richer and potentially more useful set of measures, termed diversity measures, that incorporate elements' frequencies and between-element similarities. Although these have been available in the R and Julia programming languages for other applications, they have not been as readily available in Python, which is widely used for machine learning, and are not easily applied to machine-learning-sized datasets without special coding considerations. To address these issues, we developed greylock\textit{greylock}, a Python package that calculates diversity measures and is tailored to large datasets. greylock\textit{greylock} can calculate any of the frequency-sensitive measures of Hill's D-number framework, and going beyond Hill, their similarity-sensitive counterparts (Greylock is a mountain). greylock\textit{greylock} also outputs measures that compare datasets (beta diversities). We first briefly review the D-number framework, illustrating how it incorporates elements' frequencies and between-element similarities. We then describe greylock\textit{greylock}'s key features and usage. We end with several examples - immunomics, metagenomics, computational pathology, and medical imaging - illustrating greylock\textit{greylock}'s applicability across a range of dataset types and fields.Comment: 42 pages, many figures. Many thanks to Ralf Bundschuh for help with the submission proces

    Mortality and pulmonary complications in patients undergoing surgery with perioperative SARS-CoV-2 infection: an international cohort study

    Get PDF
    Background: The impact of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) on postoperative recovery needs to be understood to inform clinical decision making during and after the COVID-19 pandemic. This study reports 30-day mortality and pulmonary complication rates in patients with perioperative SARS-CoV-2 infection. Methods: This international, multicentre, cohort study at 235 hospitals in 24 countries included all patients undergoing surgery who had SARS-CoV-2 infection confirmed within 7 days before or 30 days after surgery. The primary outcome measure was 30-day postoperative mortality and was assessed in all enrolled patients. The main secondary outcome measure was pulmonary complications, defined as pneumonia, acute respiratory distress syndrome, or unexpected postoperative ventilation. Findings: This analysis includes 1128 patients who had surgery between Jan 1 and March 31, 2020, of whom 835 (74·0%) had emergency surgery and 280 (24·8%) had elective surgery. SARS-CoV-2 infection was confirmed preoperatively in 294 (26·1%) patients. 30-day mortality was 23·8% (268 of 1128). Pulmonary complications occurred in 577 (51·2%) of 1128 patients; 30-day mortality in these patients was 38·0% (219 of 577), accounting for 81·7% (219 of 268) of all deaths. In adjusted analyses, 30-day mortality was associated with male sex (odds ratio 1·75 [95% CI 1·28–2·40], p\textless0·0001), age 70 years or older versus younger than 70 years (2·30 [1·65–3·22], p\textless0·0001), American Society of Anesthesiologists grades 3–5 versus grades 1–2 (2·35 [1·57–3·53], p\textless0·0001), malignant versus benign or obstetric diagnosis (1·55 [1·01–2·39], p=0·046), emergency versus elective surgery (1·67 [1·06–2·63], p=0·026), and major versus minor surgery (1·52 [1·01–2·31], p=0·047). Interpretation: Postoperative pulmonary complications occur in half of patients with perioperative SARS-CoV-2 infection and are associated with high mortality. Thresholds for surgery during the COVID-19 pandemic should be higher than during normal practice, particularly in men aged 70 years and older. Consideration should be given for postponing non-urgent procedures and promoting non-operative treatment to delay or avoid the need for surgery. Funding: National Institute for Health Research (NIHR), Association of Coloproctology of Great Britain and Ireland, Bowel and Cancer Research, Bowel Disease Research Foundation, Association of Upper Gastrointestinal Surgeons, British Association of Surgical Oncology, British Gynaecological Cancer Society, European Society of Coloproctology, NIHR Academy, Sarcoma UK, Vascular Society for Great Britain and Ireland, and Yorkshire Cancer Research

    Crowdsourcing scoring of immunohistochemistry images: Evaluating Performance of the Crowd and an Automated Computational Method

    No full text
    The assessment of protein expression in immunohistochemistry (IHC) images provides important diagnostic, prognostic and predictive information for guiding cancer diagnosis and therapy. Manual scoring of IHC images represents a logistical challenge, as the process is labor intensive and time consuming. Since the last decade, computational methods have been developed to enable the application of quantitative methods for the analysis and interpretation of protein expression in IHC images. These methods have not yet replaced manual scoring for the assessment of IHC in the majority of diagnostic laboratories and in many large-scale research studies. An alternative approach is crowdsourcing the quantification of IHC images to an undefined crowd. The aim of this study is to quantify IHC images for labeling of ER status with two different crowdsourcing approaches, image-labeling and nuclei-labeling, and compare their performance with automated methods. Crowdsourcing- derived scores obtained greater concordance with the pathologist interpretations for both image-labeling and nuclei-labeling tasks (83% and 87%), as compared to the pathologist concordance achieved by the automated method (81%) on 5,338 TMA images from 1,853 breast cancer patients. This analysis shows that crowdsourcing the scoring of protein expression in IHC images is a promising new approach for large scale cancer molecular pathology studies

    Multiscale nonlinear microscopy and widefield white light imaging enables rapid histological imaging of surgical specimen margins

    No full text
    © 2018 Optical Society of America under the terms of the OSA Open Access Publishing Agreement. The ability to histologically assess surgical specimens in real-time is a longstanding challenge in cancer surgery, including applications such as breast conserving therapy (BCT). Up to 40% of women treated with BCT for breast cancer require a repeat surgery due to postoperative histological findings of close or positive surgical margins using conventional formalin fixed paraffin embedded histology. Imaging technologies such as nonlinear microscopy (NLM), combined with exogenous fluorophores can rapidly provide virtual H&E imaging of surgical specimens without requiring microtome sectioning, facilitating intraoperative assessment of margin status. However, the large volume of typical surgical excisions combined with the need for rapid assessment, make comprehensive cellular resolution margin assessment during surgery challenging. To address this limitation, we developed a multiscale, real-time microscope with variable magnification NLM and real-time, co-registered position display using a widefield white light imaging system. Margin assessment can be performed rapidly under operator guidance to image specific regions of interest located using widefield imaging. Using simulated surgical margins dissected from human breast excisions, we demonstrate that multi-centimeter margins can be comprehensively imaged at cellular resolution, enabling intraoperative margin assessment. These methods are consistent with pathology assessment performed using frozen section analysis (FSA), however NLM enables faster and more comprehensive assessment of surgical specimens because imaging can be performed without freezing and cryo-sectioning. Therefore, NLM methods have the potential to be applied to a wide range of intra-operative applications

    Rapid histopathological imaging of skin and breast cancer surgical specimens using immersion microscopy with ultraviolet surface excitation

    Get PDF
    Rapid histopathological evaluation of fresh, unfixed human tissue using optical sectioning microscopy would have applications to intraoperative surgical margin assessment. Microscopy with ultraviolet surface excitation (MUSE) is a low-cost optical sectioning technique using ultraviolet illumination which limits fluorescence excitation to the specimen surface. In this paper, we characterize MUSE using high incident angle, water immersion illumination to improve sectioning. Propidium iodide is used as a nuclear stain and eosin yellow as a counterstain. Histologic features of specimens using MUSE, nonlinear microscopy (NLM) and conventional hematoxylin and eosin (H&E) histology were evaluated by pathologists to assess potential application in Mohs surgery for skin cancer and lumpectomy for breast cancer. MUSE images of basal cell carcinoma showed high correspondence with frozen section H&E histology, suggesting that MUSE may be applicable to Mohs surgery. However, correspondence in breast tissue between MUSE and paraffin embedded H&E histology was limited due to the thicker optical sectioning in MUSE, suggesting that further development is needed for breast surgical applications. We further demonstrate that the transverse image resolution of MUSE is limited by the optical sectioning thickness and use co-registered NLM to quantify the improvement in MUSE optical sectioning from high incident angle water immersion illumination

    Limited Reporting of Histopathologic Details in a Multi-Institutional Academic Cohort of Phyllodes Tumors: Time for Standardization

    No full text
    BackgroundPhyllodes tumors are rare fibroepithelial neoplasms that are classified by tiered histopathologic features. While there are protocols for the reporting of cancer specimens, no standardized reporting protocol exists for phyllodes.MethodsWe performed an 11-institution contemporary review of phyllodes tumors. Granular histopathologic details were recorded, including the features specifically considered for phyllodes grade classification.ResultsOf 550 patients, median tumor size was 3.0 cm, 68.9% (n = 379) of tumors were benign, 19.6% (n = 108) were borderline, and 10.5% (n = 58) were malignant. All cases reported the final tumor size and grade classification. Complete pathologic reporting of all histopathologic features was present in 15.3% (n = 84) of cases, while an additional 35.6% (n = 196) were missing only one or two features in the report. Individual details regarding the degree of stromal cellularity was not reported in 53.5% (n = 294) of cases, degree of stromal atypia in 58.0% (n = 319) of cases, presence of stromal overgrowth in 56.2% (n = 309) of cases, stromal cell mitoses in 37.5% (n = 206) of cases, and tumor border in 54.2% (n = 298) of cases. The final margin status (negative vs. positive) was omitted in only 0.9% of cases, and the final negative margin width was specifically reported in 73.8% of cases. Reporting of details was similar across all sites.ConclusionIn this academic cohort of phyllodes tumors, one or more histopathologic features were frequently omitted from the pathology report. While all features were considered by the pathologist for grading, this limited reporting reflects a lack of reporting consensus. We recommend that standardized reporting in the form of a synoptic-style cancer protocol be implemented for phyllodes tumors, similar to other rare tumors
    corecore