Introduction

The medicinal plants and its high economical value secondary metabolites are widely used as raw materials for pharmaceutical, cosmetic, and perfumery industries [1]. Globally, a large population (80%) still relay on herbal products, supplements for primary healthcare, and immune boosting [2]. Therefore, there is a continuous surge in the demands of herbs and herbal products. In the time of COVID-19 pandemic, demands and usage of herbal supplements and drugs are ever-increasing. In Indian subcontinent, in the present scenario, attention towards medicinal plants in day to day life is highly recommended for maintenance of immune system and immune boosting.

Bacopa monnieri, generally known as Brahmi, is widely used in ayurvedic preparations (Indian system of traditional medicine) for treating various ailments such as epilepsy, anxiety, poor memory, neurosis, psychosis, and renaissance of sensory organs [3,4,5,6]. Moreover, in modern days, it has also been used in remedies of many other diseases including stress, depressant, ulcer, and hepatic infection [7, 8].The high economical value and global demands of bacosides consequently boosted the unorganized collections and over exploitation B. monnieri and subsequently leading to sharp reduction of germplasm and causing a massive loss to its natural habitats [9]. Furthermore, bacosides are present in very low quantity in the plant and the extraction procedure requires huge biomass leading to environmental imbalance and accounting this plant as an endangered species. The overexploitations of B. monnieri lead them to enter to highly endangered list of medicinal plants in India [9].

Similarly, Withania somnifera (Ashwagandha) is regarded as Indian ginseng with potential therapeutic values [10] for improving body strength and immune systems, anti-aging, hepatic and cardiac cells protection, control cholesterol level, antipyretic, antiulcer, hemopoietic, etc. [11, 12]. The therapeutic potentials of W. somnifera are due to the presence of terpenoids saponins collectively known as withanolides which include Withanolide A, Withanolide B, and Withaferrin A. However like B. monnieri, over exploitation of Withania somnifera is also undergoing rapid depletion in its germplasm. Moreover, it is evident that global warming and climate change have impacted on humans and agriculture. The increasing population and food security are a big challenge too; however with depleting land under cultivation area and other challenges form abiotic [13] and biotic stresses, it is hard to maintain yield attributes [1].

In recent years, endophytes are regarded as major sources for potential metabolites such as alkaloids, benzopyranones, benzoquinones, flavonoids, phenols, steroids, terpenoids, tetralones, and xanthones, [14] with array of novel therapeutic values [15]. Endophytic fungi colonize intercellularly or intracellularly within healthy plant tissues [16] and consequently maintain a harmonious symbiotic relationship without causing any apparent harm or disease symptoms within all examined plants [17, 18]. The endophytes dwelling inside the medicinal plants forms a positive correlation over time and yields secondary metabolites in the same lines as of the host plants [15]. The endophytes isolated from medicinal plants are proved to be involved in modulation of secondary metabolites and production of pharmacologically important substances facilitates nutrient exchange and enzyme activity, enhanced stress resistance in plants, degradation of pollutants, and help in plant growth by producing plant hormones [12, 19].

Therefore to cope from aforementioned issues and meet the desired demands, there is urgent need to search an efficient, eco-friendly, cost-effective alternative production of high contents of bacoside and withanolide. In this regard, native endophytic fungi, a simplest eukaryotic microorganism, could be new sources of aforesaid saponins and will protect naturally inhabiting B. monnieri and W. somnifera resources. The potential of endophytes to produce pharmacologically important secondary metabolites encouraged us to undertake the studies for unexplored native endophytes from B. monnieri and look for potentially important secondary metabolite biosynthesis under in vitro conditions. We hypothesize that the isolated fungal endophytes will mimic secondary metabolites of B. monnieri and will scale up yield of Bacosides when compared to in planta.

Material and methods

Collection of plant material

The brahmi plants were cultivated in the research fields of CSIR-Central Institute of Medicinal and Aromatic Plants (CSIR-CIMAP, Lucknow, India, an institute of national importance dedicated to medicinal plants research) located at an elevation of 131 m elevation from sea level (26°16, N, 80°46, E and the region has semiarid sub-tropical climatic conditions with an average rainfall of 1000 mm (https://en.climate-data.org/asia/india/uttar-pradesh/Lucknow). A survey to the fields were done and healthy looking plants were collected and transferred to laboratory for further isolation process as described previously in our research article [16].

Isolation of endophytic fungi

The isolation of endophytic fungi from brahmi plant leaves were carried out as per previous described methods [16, 20]. The leaves were well rinsed with normal tap water for few minutes to remove surface adherent followed by washing with double distilled and surface sterilized with 70% ethanol solution for 10 s followed by treatment with 4% sodium hypochlorite solution for 5 min. Further the leaves were rinsed with sterile double distilled water for 1 min (3 times). The sterilized plant leaves were dried on pre-sterile filer paper and chopped into small pieces (3 to 5 mm), and transferred on potato dextrose agar (PDA) plates supplemented with streptomycin (1 gm L−1) followed with incubation in BOD incubator at 28 ± 1 °C under dark conditions until the growth of fungal hyphae. Afterwards, the hyphae were transferred carefully into fresh PDA plates to get pure cultures [15, 16].

Fungal culturing and preparation of fungal crude extract

The isolated fungal strains were transferred to potato dextrose broth (PDB), incubated at 28 ± 2 °C in dark (200 RPM) under constant shaking conditions for 16 days. After incubation, the fungal crude extract was separated from mycelia by filtering through cheesecloth. Filtered supernatant was extracted (ratio of 1:1) with ethyl acetate as organic solvent; further, the supernatant was subsequently left for 48 h at room temperature to properly solubilize the fungal metabolites in the solvent. Afterwards, ethyl acetate fractions were collected through separating funnel and concentrated in vacuo (Bucchi, Rotavapor, India). The concentrated fungal metabolites were further dissolved in 10 mL of methyl alcohol and subsequently filtered through 0.2 μm filters to obtain the crude extract.

Screening of saponins producing endophytic fungi

The isolated pure fungal cultures were further screened for their ability of saponins production. To look for the saponins presence in crude extract, 5 mL aliquots of fungal crude extract (FCE) was mixed with 25 mL of distill water and heated in a microwave for 2 min, followed by shaking vigorously for 1 min with vortex mixture. Afterwards, the mixtures were allowed to stand for 10 min. The occurrence of stable froth is an indicative of saponins presence. We found 40 endophytic fungi that were capable of producing saponins. These saponin positive isolates were further analyzed for their ability of bacoside and withanolide production.

Quantification of Bacoside A content

For quantification of Bacoside A content we followed protocols of Murthy et al. [21], 250 ml of FCEs were mixed with same volume of ethyl acetate sequentially extracted 2 times; further left overnight with ethyl acetate and process was repeated next day once again for complete extraction of metabolites. The extracted ethyl acetate fractions were pooled and subsequently concentrated using rotavapor (Bucchi, India). The dry residue of metabolites were collected, and further dissolved in 5 mL of HPLC grade (Sigma Aldrich) methanol and eluted using micropipette. Afterwards, the eluted metabolites were centrifuged at 6000 rpm for 5 min (Sigma Aldrich) and subsequently supernatant was filtered using 0.45 µm nylon syringe filter. The filtrate thus obtained was used for HPLC analysis. The analysis was performed using Shimadzu HPLC (Prominence-model Singapore) operational with LC-20AD pump, SIL-20 AC HT auto-sampler, SPD M20 PDA detector, CTO-10 AS VP column and DGU-14A DEGASSER mobile phase solvent. The reverse phase C18 column (250 mm × 0.46 mm × 0.25 μm) was used. For the mobile phase acetonitrile–water was (with 0.05% orthophophoric acid) used with gradient solvent system having a run time of 40 min (from 0–25 min 30:70 v/v, 25–35 min 60:40 v/v, 35–37 min 60:40 v/v, and 37–40 min 30:70 v/v) with the current rate of 1.5 mL min−1 [21] The detection was made at 205 nm. The acquisition and computation of data was carried out using lab solution software. The standard of Bacoside A used was purchased from Natural Remedies Pvt. Ltd., India. A total six fungal isolates were found to synthesize Bacoside A (mixture of four Bacoside standards—Bacoside A3, Bacopaside II, Jujubogenin isomer of Bacopasaponin C, and Bacopasaponin C). These fungal isolates were also examined for their withanolide production potentials.

Quantification of Withanolide A, Withanolide B, and Withaferrin A content

The preparation of fungal metabolite solution for quantification of withanolide content was carried out in the similar lines of the methods described by Chaurasiya et al. [22]. Here also the reverse phase column (250 mm × 0.46 mm × 0.25 μm) was used. The mobile phase was water (with 0.1% acetic acid)-methanol (with 0.01% acetic acid) with gradient solvent system having run time of 75 min (from 0–30 min 60:40 v/v, 30–45 min 40:60 v/v, 45–54 min 25:75 v/v, 54–60 min 5:95 v/v, and 60–75 min 60:40 v/v) with the flow rate of 0.6 mL min−1. The detection was made at 227 nm [22]. The standards of Withanolide A, Withanolide B, and Withaferrin A were procured from Natural Remedies Pvt. Ltd., India.

Out of the six, three best strains producing both bacoside and withanolide were selected for further characterization (biochemical-phytochemical synthesis, extracellular enzymes production, plant growth promoting activities; morphological and molecular—5.8S ITS sequencing and BLAST analysis) and other important studies.

Qualitative screening of other phytochemicals

The qualitative screening of phytomolecules from fungal crude extracts (FCEs) was performed in the same lines as described by Bandoni et al. [23]. One mL of FCE was mixed in 1 mL of chloroform followed by addition of 0.75 mL of concentrated sulfuric acid. The appearance of reddish-brown precipitate in the interface indicates the presence of terpenoids. For detection of presence of phenols 1 mL of FCE was transferred to test tube and left for air drying. The air dried crude extract was mixed with 1 mL of distilled water and a few drops of FeCl3. The appearance of dark green color shows the presence of phenols. To detect the tannins in FCE, 1 mL of crude extract was mixed with 0.1% FeCl3. The development of brownish green or a blue black coloration shows the presence of tannins in crude extract. Steroids presence in crude extract were detected by mixing of 1 mL of FCE with 2 mL of chloroform and the same volume of concentrated sulfuric acid was added slowly with the mixture. The turning of upper layer into red while green fluorescence by sulfuric acid layer indicates the occurrence of steroids. The alkaloids were looked in by taking 1 mL of FCE and further mixed with 1 mL of 1% HCl solutions in stream bath. Afterwards, few drops of Mayer’s reagent were added to the mixture and development of creamish/buff color precipitate indicates the occurrence of alkaloids. The presence of flavonoids was detected by mixing 1 mL of methanolic FCE with few drops of 1% ammonia solution. The development of yellow color indicates the occurrence of flavonoids. Anthraquinones were detected in crude extracts by mixing 1 mL of the FCE with 0.5 mL of diluted ammonia and shaken. The development of red color indicates the occurrence of anthraquinones. At last to detect glycosides, 1 mL of glacial acetic acid was added in with 1 mL of FCE followed by a drop of 5% ethanolic ferric chloride solution. Further, 1 mL of concentrated sulfuric acid was carefully dropped down along the sides of test tube. The development of brownish ring between two layers indicated the occurrence of cardiac glycosides [23].

Qualitative screening of extracellular enzymes

The qualitative screening of extracellular enzymes activities was performed by following the methods described by Sunitha et al. [24]. The 10-day-old fungal cultures (grown at 28 ± 2 °C in dark) were used for this purpose. The amylase activity of endophytic fungi was evaluated by inoculating fungal hyphae on starch agar medium (Himedia, India). After 4 days of incubation at 28 ± 2 °C in dark, 1% of iodine solution was poured in culture plates. The appearance of colorless halo zone around fungal colony indicates the positive result of amylase activity. The cellulase activity was examined on PDA (Himedia, India) supplemented with 1% (w/w) carboxy methyl cellulose (CMC) [25]. After 3 days of incubation at 28 ± 2 °C in dark, the culture plates were stained with 2% of Congo red solution for 5 min followed by de-staining by washing them with 1 M Sodium chloride solution. The presence of clear halo zone around the colony indicates the positive cellulase activity. For estimating protease and lipase activity, fungal hyphae were inoculated on glycerol casein agar (GCA) and tributyrin (TB) agar medium (Himedia, India) at 28 ± 2 °C in dark, respectively. After 4 days of incubation at 28 ± 2 °C in dark, clear halo zone around the colony showed positive results. Similarly, laccase activity was evaluated by inoculating fungal hyphae on glucose yeast extract peptone agar medium supplemented with α-napthol (0.05 g L−1) and incubated at 28 ± 2 °C in dark for 4 days. The turning of medium from colorless to blue in color indicates positive laccase activity [24].

Screening of plant growth promoting (PGP) activity

The qualitative screening of PGP activities such as indole production (IAA), phosphate solubilization, siderophore production, catalase, and antimicrobial activity were assessed for the selected three endophytes. The 10-day-old fungal cultures (grown at 28 ± 2 °C in dark) were used for this purpose. The production of IAA activity by endophytic fungi was evaluated by transferring fungal hyphae to PDB and incubated for 4 days on rotary shaker at 200 rpm and 28 ± 2 °C in dark. At the end of 4th day, 2 mL supernatant was separated by centrifugation and mixed with 4 mL of Salkowski reagent. The appearance of stable pink color showed positive IAA production [26]. For phosphate solubilizing and sidrophore production activity a small disc of fungal hyphae from 10-day-old culture obtained through cork borer and transferred on the culture plates containing Pikovskaya’s (PVK) agar medium (HiMedia, India) and CAS agar. The plates were incubated at 28 ± 2 °C in dark for 7 days. The appearance of clear zone around the growing colony in PVK indicates positive phosphate solubilization activity [27] whereas sidrophore production was examined by observing the development of deep blue to yellow or orange color zone around the colony in CAS agar [28]. The catalytic activity was examined by growing fungal hyphae on potato dextrose agar medium at 28 ± 2 °C in dark for 4 days. An appropriate amount of H2O2 and was added in culture plates. The liberation of oxygen gas in the form of bubbles indicates the positive catalytic activity.

Antibacterial assay

The antibacterial activities of FCEs were evaluated by agar diffusion method [29]. Both Gram positive (Bacillus sp.) and Gram negative (Pseudomonas aeruginosa) bacterial strains were tested. The isolated fungal strains were cultured at 28 ± 2 °C in dark for 16 days on PDB broth. The mycelia free FCE was separated and used for the assay. The aforesaid bacterial cultures were grown overnight using nutrient broth (HiMedia, India). The supernatant was separated from bacterial cells by centrifugation and 100 μL of the cell free culture broth were poured and spread on PDA plates. Afterwards, a 6 mm well were made in each PDA plates and subsequently loaded with 0.2 mL of FCE. Streptomycin sulfate (200 mg/well) was taken as reference for this purpose. The activities of FCEs were calculated by observing the growth inhibition (in mm).

Antagonistic assay against pathogenic fungi

The antagonistic effect of the isolated endophytic fungi was evaluated against Fusarium oxysporum using the dual-culture technique [30]. Fusarium oxysporum f. sp. lycopersici (ITCC 1322), obtained from ICAR-Indian Agriculture Research Institute, New Delhi, India, was used for this purpose. Ten-day-old pathogenic fungal culture of F. oxysporum was transferred on one side of a fresh PDA plate while the test cultures were inoculated on the other side of the plate were incubated at 28 ± 2 °C for 7 days in dark. While pure culture of F. oxysporum inoculated on PDA, plates were used as control. The inhibitions in growth of F. oxysporum in presence of test cultures were recorded as positive antagonistic activity.

Morphological and molecular identification of selected endophytic fungi

The three selected fungal isolates were identified by observing the morphological characteristics on PDA under ambient day light conditions at room temperature. The molecular identification of selected endophytic fungi was performed by amplification and analysis of ITS rDNA sequences. The genomic DNA of endophytic fungi was isolated by following protocols reported by Thakur et al. [31]. Afterwards, the yield and quality of genomic DNA was estimated using Nanodrop spectrophotometer (Nanodrop ND 1000). For amplification of ITS rDNA sequences, the universal primers of Internal Transcribe Spacer 1 (ITS1-5′-TCCGTAGGTGAACCTGCGG-3′) and Internal Transcribe Spacer 4 (ITS4-5′-TCCTCCGCTTATTGATATGC-3′) were used. Nearly 25 ng of genomic DNA and 5 pmol of aforementioned primers were used for amplification purpose. The amplifications of ribosomal gene sequence were performed using Mastercyler gradient (Eppendorf) programmed as 95 °C for 5 min; 32 cycle at 95 °C for 30 s, 55 °C for 30 s, 72 °C for 1 min, and 72 °C for 10 min; and 4 °C for infinite period. The amplified PCR products were purified using PCR Cleanup Kit (Mol Bio, Himedia) by following the instructions mentioned by manufacturers. The PCR product obtained was sequenced by 3130 xl Genetic Analyzer (Applied Biosystems) using sequencing kit (Applied Biosystems, USA) and primer [11, 16]. The resultant sequence thus obtained was analyzed by nucleotide BLAST (https://blast.ncbi.nlm.nih.gov/).

Phylogenetic analysis and nucleotide sequence accession numbers

After performing the nucleotide BLAST of sequencing product, the fasta sequence of most similar organisms along with nearest neighbor sequences from the NCBI database were download. Apart from this, one analog sequence of other fungal genera was also taken for out group purpose. The downloaded sequences were aligned by inbuilt ClustalW alignment tool of MEGA version 6 software [32]. The construction of phylogenetic tree was carried out by Maximum Likelihood algorithm method using General Time Reversible model with bootstrap replications of 1000. The ITS rDNA sequences of isolated fungal strain were submitted to GenBank.

Result and discussion

Screening and identification of endophytic fungal isolates

The endophytic fungi isolated from leaves of Bacopa monnieri were identified through both morphological (Fig. 1) and molecular characters. It is needed to look on both ways to define and identify the particular endophyte. Tiwari et al. [16] also stresses on using both techniques to reveal the identity of any endophytes. The molecular identification through homology searching (Table 1) and BLAST analysis revealed that the isolated strains namely SUBL33, SUBL51, and SUBL206 belonged to Nigrospora, Alternaria, and Aspergillus respectively. The aforesaid strains exhibited 99%, 99%, and 98% similarities with Nigrospora oryzae (KU375674), Alternaria alternata (FJ025207), and Aspergillus terreus (JX863370) respectively. The phylogenetic positions of Nigrospora oryzae (strain SUBL33), Alternaria alternata (strain SUBL51), and Aspergillus terreus (strain SUBL206) with other related organisms have been depicted in Fig. 2a, 2b, and 2c. Further, 5.8S internal transcribe spacer 1 of Nigrospora oryzae (strain SUBL33), Alternaria alternata (strain SUBL51), and Aspergillus terreus (strain SUBL206) has been submitted to the NCBI GenBank with the accession numbers MH071153, MH071155, and MH071154 respectively.

Fig. 1
figure 1

Morphological (in PDB and PDA) observation of endophytic fungal strains. (A) Nigrospora oryzae strain SUBL33. (B) Alternaria alternata strain SUBL51. (C) Aspergillus terreus strain SUBL206

Table 1 Blast analysis of isolated endophytic fungal strains
Fig. 2
figure 2figure 2figure 2

a Phylogenetic tree constructed from the internal transcribe spacer 1 of 5.8S ribosomal RNA of strains SUBL33 and related organisms constructed using maximum likelihood algorithm from an alignment of 534 nucleotides. Accession numbers of corresponding sequences are given in parentheses, and scale bar represents 1 base substitution per 50 nucleotide positions. The bootstrap probabilities calculated from 1000 replications. Trichosphaerella ceratophora strain CBS 130.82 was taken as an out-group. b Phylogenetic tree constructed from the internal transcribe spacer 1 of 5.8S ribosomal RNA of strains SUBL51 and related organisms constructed using maximum likelihood algorithm from an alignment of 573 nucleotides. Accession numbers of corresponding sequences are given in parentheses, and scale bar represents 1 base substitution per 20 nucleotide positions. The bootstrap probabilities calculated from 1000 replications. Setosphaeria rostrata strain MG15 was taken as an out-group. c Phylogenetic tree constructed from the internal transcribe spacer 1 of 5.8S ribosomal RNA of strains SUBL206 and related organisms constructed using maximum likelihood algorithm from an alignment of 575 nucleotides. Accession numbers of corresponding sequences are given in parentheses, and scale bar represents 1 base substitution per 20 nucleotide positions. The bootstrap probabilities calculated from 1000 replications. Trichocoma paradoxa isolate DWS (19)-23 was taken as an out-group

Screening of phytochemical of endophytic fungi

The results of qualitative analysis of phytochemical of FCEs were summarized in Table 2 and Fig. S1. The occurrence of phytochemical in endophytes showed that they have potentials to be used as alternative for plantless biosynthesis and in production of economically important phytomolecules for medicinal and industrial use [14, 33]. Saponins [34] and terpenoids [35] have multiple therapeutic values and are found usually in medicinal and aromatic plants. It was found that three isolated endophytic fungi were able to produce saponins and terpenoids which are in similar lines to other reports [34, 36]. The crude extract of Aspergillus terreus (strain SUBL206) showed the presence of phenolics, tannin, flavonoids, and steroids. The occurrence of phenolic compounds in fungal endophytes also has been reported with marvelous potentials such as antioxidant, antitumor, anti-inflammatory, antimicrobial, anti-carcinogenic anti-viral activities [15, 37, 38], chelating metals, and reduce lipoxygenase activity [39, 40]. The production of flavonoids and tannins further showed enhanced antioxidant capacity [15, 41]. Such compounds when used in therapeutic or dietary supplement helps in mitigating the free radicals. The steroids are also important secondary metabolites and are routinely used in medicine due to their antimicrobial and other biological activities [42]. Thus, the phenolic compounds obtained from fungal extract may find place in medicinal preparations for therapeutic purpose. The crude extract of Alternaria alternata (strain SUBL51) showed the positive results of Mayer’s test which indicates the presence of alkaloids. The presences of different type of alkaloids in FCEs were reported earlier too exhibited different potentials such as antimicrobial, insecticidal, and anticancer activities [43]. The array of metabolites produced by endophytes may be the contributions of different endophytes in particular plant that are in lines of hosts are specific but not general [44]. Similarly, we found diverse secondary metabolites from different endophytes isolated from B. monnieri might be contributing in vivo in plants for diverse potentials, although all the selected strains were failed to give the positive results of anthraquinones and cardiac glycosides.

Table 2 Qualitative analysis of phytomolecules in crude extract of endophytic fungal strain

Screening of extracellular enzyme of pure cultures

The results of qualitative analysis of extracellular enzyme of pure cultures were depicted in Table 3 and Fig. S2. All endophytic strains showed positive amylase activity. It is well reported that endophytes utilize starch as a main carbon and energy sources by hydrolyzing them with amylase [19]. The results got strengthened from previous findings and we can predict that in vitro large scale culturing of endophytes needs starch as energy source. Laccase and proteases was produced only by Aspergillus terreus (strain SUBL206). Generally, the fungi that possess the ability to produce laccase are found to mitigate toxic phenols from the medium in which they grow [45]. The production of laccase by endophytic fungi is conformity with the result found earlier by Sunitha et al. [24] where among the isolated fungi, few were able to produced laccase. The enzyme has been also regarded useful in a number of areas such as textile dye transformation, waste detoxification, biosensors, and food technology [46]. We say that the endophytes isolated with laccase potentials will be a good source of the mentioned enzyme and possibility can be exploited in future for the same purpose. Proteases have equally commercial significance like laccase and these enzymes are presently used in broad range of domains such as bioremediation, leather manufacture, animal cell culture, insecticidal agents, silk degumming, detergent, cosmetics, food, and pharmaceuticals industries [47, 48]. Our results indicated Aspergillus terreus (strain SUBL206) produced proteases are in same lines as reported for Aspergillus oryzae [49]. The cellulase enzyme is widely used in pulp and paper industries. We have observed that Nigrospora oryzae (strain SUBL33) and Aspergillus terreus (strain SUBL206) were able to hydrolyze cellulose via the production of cellulase in extracellular medium. The production of extracellular cellulase by endophytic fungi has been well reported [24]. The cellulase production by aforementioned fungi indicates that endophytes have own genetic mechanism necessary to generate cellulase, and this might be used by endophytic fungi for establishing itself in host plant.

Table 3 Qualitative analysis of extracellular enzyme of endophytic fungal strains

Screening of plant growth promoting (PGP) activity

The PGP activities of fungal strains were represented in Table 4 and Fig. S3. All strains were found to have catalase activity. Nigrospora oryzae (strain SUBL33) and Alternaria alternata (strain SUBL51) showed the positive IAA test. Moreover, Alternaria alternata (strain SUBL51) also showed sidrophore activity. The production of IAA and sidrophore by endophytic fungi were reported earlier in many studies [50, 51]. However, all aforementioned strains were unable to solubilize phosphate. The PGP activities of endophytes directly attributed to their indole production, phosphorus mobilization, and ammonia production, scavenging free radicals, synthesis of enzymes or metabolites that notably inhibit the growth of pathogenic microorganisms [50] and help plants to remain healthy. Furthermore, the microbes with PGP potentials either endophytic or rhizospheric, supports plant growth and development with secretion of plant growth promoting enzymes [52]. They (microbes) also contribute in enhancement [1, 11, 52] and modulation of secondary metabolites in planta [12]. Therefore, microbes with such potentials will be beneficial for targeted enhanced metabolite productions.

Table 4 Plant growth promoting (PGP) features of endophytic fungal strains

Detection of antibacterial and antagonistic activity

The antibacterial activity of extracellular fungal extract has represented in Table 5 whereas the antagonistic activities with respect to F. oxysporum f. sp. lycopersici (ITCC 1322) has depicted in Table 6. The antibacterial activity of endophytes was examined against both Gram positive (Bacillus sp. GenBank no. JN700911) and Gram negative (Pseudomonas aeruginosa strain CRC5 (GenBank no. HQ995502 and microbial type culture collection no. MTCC 9800)) bacteria. The antibacterial activity of isolated endophytic fungi tested against Gram positive and Gram negative bacteria by well diffusion method. Only the fungal extract of Alternaria alternata (strain SUBL51) showed 8 mm inhibition zone against Gram positive Bacillus sp.; however, it failed to inhibit the growth of Gram negative. There was no antimicrobial activity observed with Nigrospora oryzae (strain SUBL33) and Aspergillus terreus (strain SUBL206) (Table 5). Our results are as par to findings of other researchers [53, 54] where they reported antimicrobial activity of Aspergillus spp. against both Gram positive and Gram negative bacteria. The antagonistic activity of selected endophytes was done against a phytopathogen F. oxysporum f. sp. lycopersici (ITCC 1322) (Fig. 3 and Table 6). The maximum growth was inhibited by Alternaria alternata (strain SUBL51) followed by Nigrospora oryzae (strain SUBL33) and Aspergillus terreus (strain SUBL206) respectively. The antagonistic action of endophytic fungi against phytopathogens tested may be attributed either by production of antibiotics or cell wall degrading enzymes [55]. These potentials might be also responsible for protecting plants from naturally from different fungal diseases and enhanced immunity.

Table 5 Antibacterial activity of endophytic fungal strains
Table 6 Antagonistic activity of endophytic fungal strains
Fig. 3
figure 3

Antimicrobial activity. (A) Antibacterial activity in fungal crude extract against Bacillus sp. and Pseudomonas aeruginosa. (B) Antifungal activity of endophytic fungal strain against Fusarium oxysporum

HPLC analyses of Bacoside A content

The culture filtrates of Nigrospora oryzae (strain SUBL33), Alternaria alternata (strain SUBL 51), and Aspergillus terreus (strain SUBL206) were subjected to HPLC for analysis of bacosides. As a reference, Bacoside A (mixture of four Bacoside standards—Bacoside A3, Bacopaside II, Bacopasaponin C, and Jujubogenin isomer of Bacopasaponin C) was used. According to the spectra (Fig. 4aa and Table 7), all the endophytes Nigrospora oryzae (strain SUBL33), Alternaria alternata (strain SUBL51), and Aspergillus terreus (strain SUBL206) produced significant concentrations of Bacoside A (Table 7). Among aforesaid strains, SUBL33 produce highest quantity of Bacoside A3 (4093 μg mL−1), Jujubogenin isomer of Bacopasaponin C (65,339 μg mL−1), and Bacopasaponin C (1325 μg mL−1) while Bacopasaponin II was produced maximum by SUBL51 (13,030 μg mL−1) (Table 7). Although, Jasim et al. [36] have characterized and reported the synthesis of bacoside from Aspergillus spp. under in vitro conditions but it is a novelty of our work which reports both withanolides and bacosides from endophytes including A. terreus in same metabolites in reasonable quantity.

Fig. 4
figure 4figure 4

a HPLC chromatograms of (A) Bacoside A (mixtures of Bacoside A3, Bacopaside II, Jujubogenin isomer of Bacopasaponin C, and Bacopasaponin C). (B) Crude extract of Nigrospora oryzae (strain SUBL33). (C) Crude extract of Alternaria alternata (strain SUBL51). (D) Crude extract of Aspergillus terreus (strain SUBL206). b HPLC chromatograms of (A) withanolides (mixtures of Withanolide A, Withanolide B and withaferin). (B) Crude extract of Nigrospora oryzae (strain SUBL33). (C) Crude extract of Alternaria alternata (strain SUBL51). (D) Crude extract of Aspergillus terreus (strain SUBL206)

Table 7 Analysis of Bacoside A in fungal crude extract

HPLC analyses of Withanolide A, Withanolide B, and Withaferrin A content

The enhance production of withanolide through modulation of its pathway has been earlier reported by our laboratory [12]. There are also a very few report of production of Withanolide from endophytic fungi [56]. However endophytes from B. monnieri biosynthesizing both the phytomolecules which is obtained from different medicinal plants are unique. The fungal crude extracts were looked in for detection of Withanolide A, Withanolide B, and Withaferrin A content using HPLC (Fig. 4b and Table 8). As a reference, mixtures of aforesaid phytochemical were used as standards. As spectral analysis it was found that Nigrospora oryzae (strain SUBL33), Alternaria alternata (strain SUBL51), and Aspergillus terreus (strain SUBL206) all produced detectable concentrations of withanolide (Fig. 4b and Table 8). The endophytes Alternaria alternata (strain SUBL51) produced withaferrin A and Withanolide B phytochemical (480 μg mL−1 and 1024 μg mL−1) respectively, highest quantity when compared with other two strains (Table 8). However, Alternaria alternata (strain SUBL51) was unable to produce Withanolide A, which was reported highest in Nigrospora oryzae (strain SUBL33). Therefore, we believe that the unique endophytes with dual properties of biosynthesizing both the phytomolecules are encoring and will prospect for future targets of scale-up studies and therapeutic in vivo studies using model systems.

Table 8 Analysis of withanolides—Withaferrin A, Withanolide A, and Withanolide B in fungal crude extract

Conclusion

This is the first report of biosynthesis and production of bacosides and withanolides through endophytes from B. monnieri under in vitro conditions. The isolated native endophytic fungi which have PGP potentials could be utilized for plantless, efficient production of bacosides and withanolides in a short period of time with eco-friendly and cost-effective manner. The endophytes if utilized for commercial purpose will minimize unorganized collection and over exploitation of B. monnieri and W. somnifera and will protect the rapid depletion of their germplasm and ultimately boost their survival in natural habitats. Moreover, this study will strengthen the importance of endophytes mimicking phytomolecules of economic importance. Further, it will encourage the researchers to explore endophytes from different medicinal and aromatic plants for biosynthesis of phytomolecules in demand in pharmaceutical and phytochemical industries, and thus will also help in minimizing the cost and adverse impacts on nature.