43 resultados para Non-conventional database
Resumo:
Volumes of data used in science and industry are growing rapidly. When researchers face the challenge of analyzing them, their format is often the first obstacle. Lack of standardized ways of exploring different data layouts requires an effort each time to solve the problem from scratch. Possibility to access data in a rich, uniform manner, e.g. using Structured Query Language (SQL) would offer expressiveness and user-friendliness. Comma-separated values (CSV) are one of the most common data storage formats. Despite its simplicity, with growing file size handling it becomes non-trivial. Importing CSVs into existing databases is time-consuming and troublesome, or even impossible if its horizontal dimension reaches thousands of columns. Most databases are optimized for handling large number of rows rather than columns, therefore, performance for datasets with non-typical layouts is often unacceptable. Other challenges include schema creation, updates and repeated data imports. To address the above-mentioned problems, I present a system for accessing very large CSV-based datasets by means of SQL. It's characterized by: "no copy" approach - data stay mostly in the CSV files; "zero configuration" - no need to specify database schema; written in C++, with boost [1], SQLite [2] and Qt [3], doesn't require installation and has very small size; query rewriting, dynamic creation of indices for appropriate columns and static data retrieval directly from CSV files ensure efficient plan execution; effortless support for millions of columns; due to per-value typing, using mixed text/numbers data is easy; very simple network protocol provides efficient interface for MATLAB and reduces implementation time for other languages. The software is available as freeware along with educational videos on its website [4]. It doesn't need any prerequisites to run, as all of the libraries are included in the distribution package. I test it against existing database solutions using a battery of benchmarks and discuss the results.
Resumo:
The conventional wisdom is that cell-surface receptors interact with ligands expressed on other cells to mediate cell-to-cell communication (trans interactions). Unexpectedly, it has recently been found that two classes of receptors specific for MHC class I molecules not only interact with MHC class I molecules expressed on opposing cells, but also with those on the same cell. These cis interactions are a feature of immunoreceptors that inhibit, rather than activate, cellular functions. Here, we review situations in which cis interactions have been observed, the characteristics of receptors that bind in trans and cis, and the biological roles of cis recognition.
Resumo:
The goal of this work is to develop a method to objectively compare the performance of a digital and a screen-film mammography system in terms of image quality. The method takes into account the dynamic range of the image detector, the detection of high and low contrast structures, the visualisation of the images and the observer response. A test object, designed to represent a compressed breast, was constructed from various tissue equivalent materials ranging from purely adipose to purely glandular composition. Different areas within the test object permitted the evaluation of low and high contrast detection, spatial resolution and image noise. All the images (digital and conventional) were captured using a CCD camera to include the visualisation process in the image quality assessment. A mathematical model observer (non-prewhitening matched filter), that calculates the detectability of high and low contrast structures using spatial resolution, noise and contrast, was used to compare the two technologies. Our results show that for a given patient dose, the detection of high and low contrast structures is significantly better for the digital system than for the conventional screen-film system studied. The method of using a test object with a large tissue composition range combined with a camera to compare conventional and digital imaging modalities can be applied to other radiological imaging techniques. In particular it could be used to optimise the process of radiographic reading of soft copy images.
Resumo:
Nationwide surveys on radiation dose to the population from medical radiology are recommended in order to follow the trends in population exposure and ensure radiation protection. The last survey in Switzerland was conducted in 1998, and the annual effective dose from medical radiology was estimated to be 1 mSv y(-1) per capita. The purpose of this work was to follow the trends in diagnostic radiology between 1998 and 2008 in Switzerland and determine the contribution of different modalities and types of examinations to the collective effective dose from medical x-rays. For this reason, an online database (www.raddose.ch) was developed. All healthcare providers who hold a license to run an x-ray unit in the country were invited to participate in the survey. More than 225 examinations, covering eight radiological modalities, were included in the survey. The average effective dose for each examination was reassessed. Data from about 3,500 users were collected (42% response rate). The survey showed that the annual effective dose was 1.2 mSv/capita in 2008. The most frequent examinations are conventional and dental radiographies (88%). The contribution of computed tomography was only 6% in terms of examination frequency but 68% in terms of effective dose. The comparison with other countries showed that the effective dose per capita in Switzerland was in the same range as in other countries with similar healthcare systems, although the annual number of examinations performed in Switzerland was higher.
Resumo:
Background: Roux-en-Y gastric bypass (RYGBP) and gastric banding (GB) are the two most popular bariatric procedures. Only few studies have compared their results and follow-up duration is usually limited to <3 years. Patients and Methods: Using our prospective bariatric database, we matched non-superobese GB to RYGBP patients for sex, age and BMI to RYGBP. Follow-up considered up to five years. Results: 442 patients were matched in 221 pairs. Mean age (38,6) and mean BMI (43) were identical. Overall operative morbidity was higher after RYGBP (17,2 versus 5,4 %, p<0,001), but major morbidity was similar (3,6 versus 2,2 %, p=0,57). More patients developed long-term complications after GB (43,9 % versus 19 %, p<0,001), and more required reoperations (24,4 % versus 12 %, p=0,001). After RYGBP, reoperations were mainly due to internal hernias (87 %), with no reversal, whereas 18,5 % of the GB patients required band removal. Even including only patients who retained their band, weight loss after RYGBP was better throughout the study period, with 5-year EBMIL of 77,6 % and 61,7 % (p<0,001) after RYGBP and GB respectively. RYGBP was associated with better food tolerance and greater improvement of the lipid profile. Conclusions: GB is associated with a smaller overall operative morbidity and similar major morbidity, but with more long-term complications, more reoperations, a significant number of reversal or conversion procedures, and reduced weight loss when compared with RYGBP. Five-year results of RYGBP are superior to GB and patients should be informed accordingly.
Resumo:
BACKGROUND: Methodological research has found that non-published studies often have different results than those that are published, a phenomenon known as publication bias. When results are not published, or are published selectively based on the direction or the strength of the findings, healthcare professionals and consumers of healthcare cannot base their decision-making on the full body of current evidence. METHODS: As part of the OPEN project (http://www.open-project.eu) we will conduct a systematic review with the following objectives:1. To determine the proportion and/or rate of non-publication of studies by systematically reviewing methodological research projects that followed up a cohort of studies that a. received research ethics committee (REC) approval,b. were registered in trial registries, orc. were presented as abstracts at conferences.2. To assess the association of study characteristics (for example, direction and/or strength of findings) with likelihood of full publication.To identify reports of relevant methodological research projects we will conduct electronic database searches, check reference lists, and contact experts. Published and unpublished projects will be included. The inclusion criteria are as follows:a. RECs: methodological research projects that examined the subsequent proportion and/or rate of publication of studies that received approval from RECs;b. Trial registries: methodological research projects that examine the subsequent proportion and/or rate of publication of studies registered in trial registries;c. Conference abstracts: methodological research projects that examine the subsequent proportion and/or rate of full publication of studies which were initially presented at conferences as abstracts.Primary outcomes: Proportion/rate of published studies; time to full publication (mean/median; cumulative publication rate by time).Secondary outcomes: Association of study characteristics with full publication.The different questions (a, b, and c) will be investigated separately. Data synthesis will involve a combination of descriptive and statistical summaries of the included methodological research projects. DISCUSSION: Results are expected to be publicly available in mid 2013.
Resumo:
BACKGROUND: Several European HIV observational data bases have, over the last decade, accumulated a substantial number of resistance test results and developed large sample repositories, There is a need to link these efforts together, We here describe the development of such a novel tool that allows to bind these data bases together in a distributed fashion for which the control and data remains with the cohorts rather than classic data mergers.METHODS: As proof-of-concept we entered two basic queries into the tool: available resistance tests and available samples. We asked for patients still alive after 1998-01-01, and between 180 and 195 cm of height, and how many samples or resistance tests there would be available for these patients, The queries were uploaded with the tool to a central web server from which each participating cohort downloaded the queries with the tool and ran them against their database, The numbers gathered were then submitted back to the server and we could accumulate the number of available samples and resistance tests.RESULTS: We obtained the following results from the cohorts on available samples/resistance test: EuResist: not availableI11,194; EuroSIDA: 20,71611,992; ICONA: 3,751/500; Rega: 302/302; SHCS: 53,78311,485, In total, 78,552 samples and 15,473 resistance tests were available amongst these five cohorts. Once these data items have been identified, it is trivial to generate lists of relevant samples that would be usefuI for ultra deep sequencing in addition to the already available resistance tests, Saon the tool will include small analysis packages that allow each cohort to pull a report on their cohort profile and also survey emerging resistance trends in their own cohort,CONCLUSIONS: We plan on providing this tool to all cohorts within the Collaborative HIV and Anti-HIV Drug Resistance Network (CHAIN) and will provide the tool free of charge to others for any non-commercial use, The potential of this tool is to ease collaborations, that is, in projects requiring data to speed up identification of novel resistance mutations by increasing the number of observations across multiple cohorts instead of awaiting single cohorts or studies to reach the critical number needed to address such issues.
Resumo:
Abstract One of the most important issues in molecular biology is to understand regulatory mechanisms that control gene expression. Gene expression is often regulated by proteins, called transcription factors which bind to short (5 to 20 base pairs),degenerate segments of DNA. Experimental efforts towards understanding the sequence specificity of transcription factors is laborious and expensive, but can be substantially accelerated with the use of computational predictions. This thesis describes the use of algorithms and resources for transcriptionfactor binding site analysis in addressing quantitative modelling, where probabilitic models are built to represent binding properties of a transcription factor and can be used to find new functional binding sites in genomes. Initially, an open-access database(HTPSELEX) was created, holding high quality binding sequences for two eukaryotic families of transcription factors namely CTF/NF1 and LEFT/TCF. The binding sequences were elucidated using a recently described experimental procedure called HTP-SELEX, that allows generation of large number (> 1000) of binding sites using mass sequencing technology. For each HTP-SELEX experiments we also provide accurate primary experimental information about the protein material used, details of the wet lab protocol, an archive of sequencing trace files, and assembled clone sequences of binding sequences. The database also offers reasonably large SELEX libraries obtained with conventional low-throughput protocols.The database is available at http://wwwisrec.isb-sib.ch/htpselex/ and and ftp://ftp.isrec.isb-sib.ch/pub/databases/htpselex. The Expectation-Maximisation(EM) algorithm is one the frequently used methods to estimate probabilistic models to represent the sequence specificity of transcription factors. We present computer simulations in order to estimate the precision of EM estimated models as a function of data set parameters(like length of initial sequences, number of initial sequences, percentage of nonbinding sequences). We observed a remarkable robustness of the EM algorithm with regard to length of training sequences and the degree of contamination. The HTPSELEX database and the benchmarked results of the EM algorithm formed part of the foundation for the subsequent project, where a statistical framework called hidden Markov model has been developed to represent sequence specificity of the transcription factors CTF/NF1 and LEF1/TCF using the HTP-SELEX experiment data. The hidden Markov model framework is capable of both predicting and classifying CTF/NF1 and LEF1/TCF binding sites. A covariance analysis of the binding sites revealed non-independent base preferences at different nucleotide positions, providing insight into the binding mechanism. We next tested the LEF1/TCF model by computing binding scores for a set of LEF1/TCF binding sequences for which relative affinities were determined experimentally using non-linear regression. The predicted and experimentally determined binding affinities were in good correlation.
Resumo:
Background: To evaluate the long-term efficacy of multilayer amniotic membrane transplantation for reconstruction of epithelium and stroma in non-traumatic corneal perforations (less than 2 mm) or deep ulcers with descemetocele.Design: Retrospective, non-comparative, interventional case series.Patients and Methods: Eleven consecutive patients with non-traumatic corneal perforations or deep corneal ulcers with descemetocele refractory to conventional treatments: herpetic or zoster keratitis (n = 4), Sjögren's syndrome (n = 2), rosacea (n = 1), hydrops (n = 1), mucous membrane pemphigoid (n = 1), bacterial keratitis (n = 1) and perforation after protontherapy for melanoma (n = 1). Intervention was: multilayer amniotic membrane transplantation with cryopreserved amniotic membrane. Complication rate and clinical outcome were evaluated in this long-term follow-up.Results: Mean follow-up was 32 months (12 to 60). Integration of the multilayer amniotic membrane was obtained in 10 cases after one year. Corneal epithelium healed above the membrane in 10 cases within 3 weeks and remained stable after 32 months in 9 cases. Thickness of the stroma was increased and remained stable during the follow-up in 9 cases. In one case herpetic keratitis recurred with a corneal perforation. The clearing of the amniotic membrane was gradually obtained over a period of 11 months. Complications occurred in 15 % of the eyes during the long-term follow-up.Conclusion: Multilayer amniotic membrane transplantation is a safe and efficient technique for a long restoration of the corneal integrity after non-traumatic corneal perforations or deep corneal ulcers with descemetocele. Long-term prognosis of these eyes depends of the gravity of the initial disease.
Resumo:
RÉSUMÉ Le Grand tétras est un galliforme de montagne apparenté au faisan et au tétras lyre. Il est distribué de manière continue à travers la toundra et les montagnes de moyenne altitude en Europe de l'ouest. Toutefois, les populations d'Europe de l'ouest ont subi un déclin constant au cours des derniers siècles. Les causes de ce déclin sont probablement liées à l'activité humaine, telle .que l'élevage ou le tourisme, qui ont engendré une modification et une fragmentation de l'habitat de l'espèce. Malheureusement, les populations soumises à de forts déclins démographiques peuvent subir des effets génétiques (augmentation de la consanguinité et perte de diversité génétique) pouvant diminuer leur potentiel de reproduction et conduire irrémédiablement à l'extinction. Cette thèse présente les analyses conduites dans le but d'estimer l'impact du déclin démographique des populations de Grand tétras sur l'étendue et la distribution de leur variabilité génétique dans le Jura et dans les Pyrénées. Du fait de la législation locale protégeant les tétraonidés en général, mais également en raison de la biologie très cryptique du Grand tétras, l'ensemble des analyses de cette étude a été réalisé à partir de matériel génétique extrait des fientes (ou échantillonnage génétique non invasif). Dans la première partie de l'étude, je détaille les protocoles d'extraction. d'ADN et d'amplification par PCR modifiés à partir des protocoles classiques utilisant des échantillons conventionnels, riches en ADN. L'utilisation d'ADN fécal impose des contraintes dues à la mauvaise qualité et à la faible quantité du matériel génétique à disposition dans les fientes. Ces contraintes ont pu être partiellement contournées en réalisant des répétitions multiples du génotypage afin d'obtenir un degré de fiabilité suffisante. J'ai également analysé les causes de la dégradation de l'ADN dans les excréments. Parmi les causes les plus communes, telles que l'activité bactérienne, l'hydrolyse spontanée et la dégradation enzymatique par les DNases libres, c'est ce dernier facteur qui apparaît comme étant la cause majeure et la plus rapide responsable de la dégradation de la qualité des échantillons. La rapidité de l'action enzymatique suggère que les plans d'échantillonnages de excréments sur le terrain pourraient être optimisés en les réalisant dans des conditions climatiques froides et sèches, favorisant ainsi l'inhibition des DNases. La seconde partie de la thèse est une étude par simulation visant à déterminer la capacité du logiciel Structure à identifier les structures génétiques complexes et hiérarchiques fréquemment rencontrées dans les populations naturelles, et ce en utilisant différents types de marqueurs génétiques. Les troisième et quatrième parties de cette thèse décrivent le statut génétique des populations résiduelles du Jura et des Pyrénées à partir de l'analyse de 11 loci microsatellites. Nous n'avons pas pu mettre en évidence dans les deux populations des effets liés à la consanguinité ou à la réduction de la diversité génétique. De plus, la différenciation génétique entre les patches d'habitats favorables reste modérée et corrélée à la distance géographique, ce qui suggère que la dispersion d'individus entre les patches a été importante au moins pendant ces dernières générations. La comparaison des paramètres de la diversité génétique avec ceux d'autres populations de Grand tétras, ou d'autres espèces proches, indique que la population du Jura a retenu une proportion importante de sa diversité originelle. Ces résultats suggèrent que le déclin récent des populations a jusqu'ici eu un impact modéré sur les facteurs génétiques et que ces populations semblent avoir conservé le potentiel génétique nécessaire à leur survie à long terme. Finalement, en cinquième partie, l'analyse de l'apparentement entre les mâles qui participent à la parade sur les places de chant (leks) indique que ces derniers sont distribués en agrégats de manière non aléatoire, préférentiellement entre individus apparentés. De plus, la corrélation entre les distances génétique et géographique entre les leks est en accord avec les motifs d'isolement par la distance mis en évidence à d'autres niveaux hiérarchiques (entre patches d'habitat et populations), ainsi qu'avec les études menées sur d'autres espèces ayant choisi ce même système de reproduction. En conclusion, cette première étude basée uniquement sur de l'ADN nucléaire aviaire extrait à partir de fèces a fourni des informations nouvelles qui n'auraient pas pu être obtenues par une méthode d'observation sur le terrain ou d'échantillonnage génétique classique. Aucun oiseau n'a été dérangé ou capturé, et les résultats sont comparables à d'autres études concernant des espèces proches. Néanmoins, la taille de ces populations approche des niveaux au-dessous desquels la survie à long terme est fortement incertaine. La persistance de la diversité génétique pour les prochaines générations reste en conséquence liée à la survie des adultes et à une reprise du succès de la reproduction. ABSTRACT Capercaillie (Tetrao urogallus) is a large grouse that is continuously distributed across the tundra and the mid-high mountains of Western Europe. However, the populations in Western Europe have been showing a constant decline during the last decades. The causes for this decline are possibly related to human activities, such as cattle breeding and tourism that have both led to habitat modification and fragmentation. Unfortunately, populations that have undergone drastic demographic bottlenecks often go through genetic processes of inbreeding and loss of diversity that decrease their fitness and eventually lead to extinction. This thesis presents the investigations conducted to estimate the impact of the demographic decline of capercaillie populations on the extent and distribution of their genetic variability in the Jura and in the Pyrenees mountains. Because grouse are protected by wildlife legislation, and also because of the cryptic behaviour of capercaillie, all DNA material used in this study was extracted from faeces (non-invasive genetic sampling). In the first part of my thesis, I detail the protocols of DNA extraction and PCR amplification adapted from classical methods using conventional DNA-rich samples. The use of faecal DNA imposes specific constraints due to the low quantity and the highly degraded genetic material available. These constraints are partially overcome by performing multiple genotyping repetitions to obtain sufficient reliability. I also investigate the causes of DNA degradation in faeces. Among the main degraders, namely bacterial activity, spontaneous hydrolysis, and free-¬DNase activities, the latter was pointed out as the most important according to our experiments. These enzymes degrade DNA very rapidly, and, as a consequence, faeces sampling schemes must be planned preferably in cold and dry weather conditions, allowing for enzyme activity inhibition. The second part of the thesis is a simulation study aiming to assess the capacity of the software Structure to detect population structure in hierarchical models relevant to situations encountered in wild populations, using several genetic markers. The methods implemented in Structure appear efficient in detecting the highest hierarchical structure. The third and fourth parts of the thesis describe the population genetics status of the remaining Jura and Pyrenees populations using 11 microsatellite loci. In either of these populations, no inbreeding nor reduced genetic diversity was detected. Furthermore, the genetic differentiation between patches defined by habitat suitability remains moderate and correlated with geographical distance, suggesting that significant dispersion between patches was at work at least until the last generations. The comparison of diversity indicators with other species or other populations of capercaillie indicate that population in the Jura has retained a large part of its original genetic diversity. These results suggest that the recent decline has had so forth a moderate impact on genetic factors and that these populations might have retained the potential for long term survival, if the decline is stopped. Finally, in the fifth part, the analysis of relatedness between males participating in the reproduction parade, or lek, indicate that capercaillie males, like has been shown for some other grouse species, gather on leks among individuals that are more related than the average of the population. This pattern appears to be due to both population structure and kin-association. As a conclusion, this first study relying exclusively on nuclear DNA extracted from faeces has provided novel information that was not available through field observation or classical genetic sampling. No bird has been captured or disturbed, and the results are consistent with other studies of closely related species. However, the size of these populations is approaching thresholds below which long-term survival is unlikely. The persistence of genetic diversity for the forthcoming generations remains therefore bond to adult survival and to the increase of reproduction success.
Resumo:
BACKGROUND: Left atrial (LA) dilatation is associated with a large variety of cardiac diseases. Current cardiovascular magnetic resonance (CMR) strategies to measure LA volumes are based on multi-breath-hold multi-slice acquisitions, which are time-consuming and susceptible to misregistration. AIM: To develop a time-efficient single breath-hold 3D CMR acquisition and reconstruction method to precisely measure LA volumes and function. METHODS: A highly accelerated compressed-sensing multi-slice cine sequence (CS-cineCMR) was combined with a non-model-based 3D reconstruction method to measure LA volumes with high temporal and spatial resolution during a single breath-hold. This approach was validated in LA phantoms of different shapes and applied in 3 patients. In addition, the influence of slice orientations on accuracy was evaluated in the LA phantoms for the new approach in comparison with a conventional model-based biplane area-length reconstruction. As a reference in patients, a self-navigated high-resolution whole-heart 3D dataset (3D-HR-CMR) was acquired during mid-diastole to yield accurate LA volumes. RESULTS: Phantom studies. LA volumes were accurately measured by CS-cineCMR with a mean difference of -4.73 ± 1.75 ml (-8.67 ± 3.54%, r2 = 0.94). For the new method the calculated volumes were not significantly different when different orientations of the CS-cineCMR slices were applied to cover the LA phantoms. Long-axis "aligned" vs "not aligned" with the phantom long-axis yielded similar differences vs the reference volume (-4.87 ± 1.73 ml vs. -4.45 ± 1.97 ml, p = 0.67) and short-axis "perpendicular" vs. "not-perpendicular" with the LA long-axis (-4.72 ± 1.66 ml vs. -4.75 ± 2.13 ml; p = 0.98). The conventional bi-plane area-length method was susceptible for slice orientations (p = 0.0085 for the interaction of "slice orientation" and "reconstruction technique", 2-way ANOVA for repeated measures). To use the 3D-HR-CMR as the reference for LA volumes in patients, it was validated in the LA phantoms (mean difference: -1.37 ± 1.35 ml, -2.38 ± 2.44%, r2 = 0.97). Patient study: The CS-cineCMR LA volumes of the mid-diastolic frame matched closely with the reference LA volume (measured by 3D-HR-CMR) with a difference of -2.66 ± 6.5 ml (3.0% underestimation; true LA volumes: 63 ml, 62 ml, and 395 ml). Finally, a high intra- and inter-observer agreement for maximal and minimal LA volume measurement is also shown. CONCLUSIONS: The proposed method combines a highly accelerated single-breathhold compressed-sensing multi-slice CMR technique with a non-model-based 3D reconstruction to accurately and reproducibly measure LA volumes and function.
Resumo:
Background. Predictive molecular marker analyses are standard of care in order to select non-small cell lung cancer (NSCLC) patients for targeted therapies. The aim of this study was to determine the prevalence of targetable oncogenic driver mutations including EGFR, KRAS, BRAF, HER2, ALK and ROS1 in Switzerland. Methods. Eight Swiss pathology institutions provided retrospective and anonymized data on their predictive molecular marker results performed on NSCLC from January 2012 to December 2014. Clinico-pathological data were recorded including age, gender, histological NSCLC-subtype and specimen type (biopsy, conventional cytology and cell block, respectively) used for molecular analyses. The prevalence of oncogenic mutations were calculated and compared between the centres. Results. A total of 4187 NSCLC were included into the study. The median age was 67 years and 55% were male patients. The tumor specimens for molecular analysis were mostly derived from biopsies (69%), 26% were from conventional cytology specimens and only in 5% from cell blocks. The most prevalent gene mutation was KRAS with 30.6% (range: 27.3-33.9%), followed by EGFR, BRAF and HER2 mutations in 12.2% (range: 10.2-13.1%), 3.9% (range: 2.5-5.6%) and 1.1% (range: 0.9-4.0%), respectively, without significant differences between the eight centers. Concomitant EGFR and KRAS mutations were detected in only 3/2027 NSCLC. In contrast the prevalence of ALK (mean 6.5%, range: 2.8-11.7%) and ROS1 (mean 2.4%, range: 1.5-6.2%) rearrangements varied significantly between centers. Conclusions. The Prevalence of EGFR, KRAS, BRAF and HER2 mutations are well in line with data from other West European populations. Concomitant EGFR, KRAS, BRAF or HER2 mutations are exceptional. ALK FISH results vary significantly between the eight centres. Concomitant ALK FISH positive results in NSCLC harbouring other oncogenic driver mutation have only been observed in two smaller centres, highlighting the difficulty in ALK-FISH interpretation.
Resumo:
BACKGROUND: Antiretroviral regimens containing tenofovir disoproxil fumarate have been associated with renal toxicity and reduced bone mineral density. Tenofovir alafenamide is a novel tenofovir prodrug that reduces tenofovir plasma concentrations by 90%, thereby decreasing off-target side-effects. We aimed to assess whether efficacy, safety, and tolerability were non-inferior in patients switched to a regimen containing tenofovir alafenamide versus in those remaining on one containing tenofovir disoproxil fumarate. METHODS: In this randomised, actively controlled, multicentre, open-label, non-inferiority trial, we recruited HIV-1-infected adults from Gilead clinical studies at 168 sites in 19 countries. Patients were virologically suppressed (HIV-1 RNA <50 copies per mL) with an estimated glomerular filtration rate of 50 mL per min or greater, and were taking one of four tenofovir disoproxil fumarate-containing regimens for at least 96 weeks before enrolment. With use of a third-party computer-generated sequence, patients were randomly assigned (2:1) to receive a once-a-day single-tablet containing elvitegravir 150 mg, cobicistat 150 mg, emtricitabine 200 mg, and tenofovir alafenamide 10 mg (tenofovir alafenamide group) or to carry on taking one of four previous tenofovir disoproxil fumarate-containing regimens (tenofovir disoproxil fumarate group) for 96 weeks. Randomisation was stratified by previous treatment regimen in blocks of six. Patients and treating physicians were not masked to the assigned study regimen; outcome assessors were masked until database lock. The primary endpoint was the proportion of patients who received at least one dose of study drug who had undetectable viral load (HIV-1 RNA <50 copies per mL) at week 48. The non-inferiority margin was 12%. This study was registered with ClinicalTrials.gov, number NCT01815736. FINDINGS: Between April 12, 2013 and April 3, 2014, we enrolled 1443 patients. 959 patients were randomly assigned to the tenofovir alafenamide group and 477 to the tenofovir disoproxil fumarate group. Viral suppression at week 48 was noted in 932 (97%) patients assigned to the tenofovir alafenamide group and in 444 (93%) assigned to the tenofovir disoproxil fumarate group (adjusted difference 4·1%, 95% CI 1·6-6·7), with virological failure noted in ten and six patients, respectively. The number of adverse events was similar between the two groups, but study drug-related adverse events were more common in the tenofovir alafenamide group (204 patients [21%] vs 76 [16%]). Hip and spine bone mineral density and glomerular filtration were each significantly improved in patients in the tenofovir alafenamide group compared with those in the tenofovir disoproxil fumarate group. INTERPRETATION: Switching to a tenofovir alafenamide-containing regimen from one containing tenofovir disoproxil fumarate was non-inferior for maintenance of viral suppression and led to improved bone mineral density and renal function. Longer term follow-up is needed to better understand the clinical impact of these changes. FUNDING: Gilead Sciences.